reading value of textbox
I have a simple form with several text boxes in it in a PHP page.
Textboxes are named like this:
<input type=text size=3 name=txtbx value=5>
normally it would be form.txtbx1.value
but the square bracket (for array in PHP) is causing problem.
thanks in advance
Last edited by JayJava; 12-11-2012 at 12:27 AM.
You can use form["txtbx"].value to get the value.
Last edited by JayJava; 12-11-2012 at 12:22 PM.
I have tried using this method. Sometimes it works perfectly and sometimes it does not work altough conditions are similar if not identical.
Are there conditions involved in using this?
Can you suggest a link or article to do some reading on this topic.
Thanks in advance
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)