FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » validation of a text box input...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
validation of a text box input... [message #180777] Mon, 18 March 2013 15:46 Go to previous message
Nagaraju Kachapuram is currently offline  Nagaraju Kachapuram
Messages: 14
Registered: February 2013
Karma:
Junior Member
Hi,

I have created a text box to take input to open another form. If the text box is not given any value and press enter it is activating the linked form with empty values. How to validate the text box not accept the null value. I tried with isset() function but i dont know how to apply it. The following is some part of my text box code .



<form name="myform" action="nextform.php?id=<?php echo $id; ?>" method="GET">
<li><a ><b>ID Code:</b><br/><input type="text" color:'red' style="width:10em" maxlength=9 name=id onfocus="if (this.value == 'Enter ID Code') {this.value = '';}"></a>
<?php echo $id ?>

</li>
<li>
<input type="submit" value="submit" style="margin-left:4.5em;color:#be1400;">
</li>

Where is the error?

Thank you.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php curl only saves a cookie with tempnam()
Next Topic: Test Message
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 04:02:19 GMT 2024

Total time taken to generate the page: 0.04188 seconds