July 19th, 2007, 05:55 AM
accessing with id
In a php file, I've a form like the following:
When the form data is submitted, I want to access the information inside the text field having id="userid". How can I do that? I'm a novice in PHP so please explain.
<form method="POST" action="test2.php">
<table border="1" frame="box" rules="none">
<td>User id<sup>*</sup></td><td><input type="text" id="userid" /></td>
July 19th, 2007, 07:09 AM
Re: accessing with id
You need to use the name attribute instead of id. Then you can access the value using
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.