-2
我在view.php文件中使用了以下代码。如何将名称和电子邮件传递给controller.php文件。在php中将数据从表单传递到控制器
<?php $input = '1' ?>
<div>
<form action="<?php echo $input; ?>" method="post">
Name: <input type="text" name="name"><br>
Email: <input type="text" name="email"><br>
<input type="submit" value="Submit">
</form>
</div>
</body>
任何帮助可以是非常赞赏。
@LakshithaGihan - 你试过了吗? – RasmusGlenvig