开发者

Store input from a text field in a PHP variable [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question 开发者_如何学Pythonso that it can be reopened, visit the help center. Closed 12 years ago.

Store the users input from a text field in a variable. Any ways to do this?


HTML:

<input type="text" name="firstname" />

PHP-onsubmit (untested)

<?php
   $firstname = $_POST["firstname"];
?>


if you have a form with that textarea and you submit that form, you'll have the value in your global $_GET or $_POST-array (depending on whats the methot of your form).

you can access this value by typing $_GET['nameofyourtextarea'] (or the same with $_POST)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜