| 
 Posted by Carl Anatorian on 06/14/06 13:19 
Mladen Gogala wrote : 
> On Wed, 14 Jun 2006 21:09:17 +0800, Carl Anatorian wrote: 
>  
>> I want to it to show the text I enter in the input when I press the 
>> 'submit' botton.But it doesn't work. 
>  
> Because PHP picks "name" attribute, not "id" attribute. Try with this: 
> <html> 
> <body> 
> <?php 
> 	if(isset($_POST['tt'])) { 
> 		echo $_POST['tt']."<br/><br/><br/>"; 
> 	} 
> ?> 
> <form action=<?=$_SERVER['PHP_SELF']?> method="POST" > 
> 	<input type="text"  name="tt" /> 
> 	<input type="submit" value="submit" name="submit" /> 
> </form> 
> </body> 
> </html 
>  
thank you very much !!!!!! 
But why does php only pick "name" attribute?
 
  
Navigation:
[Reply to this message] 
 |