开发者

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

开发者 https://www.devze.com 2023-01-23 13:02 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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