
datlaravi
Deleted
Jun 22, 2000, 8:08 AM
Post #1 of 1
(344 views)
|
|
adding data through a submit button
|
Can't Post
|
|
Hi, I want to add several rooms for one location. I am getting location through $loc = $query->param('nameoftextbox'); #from a different form In perl script, I have a textbox and a submit button. when i enter 'data' in the textbox and click on a submit button it should add a data to the location. I am getting location through $loc variable. Everytime i click on submit button, it is going to the same form so that the user can add more data to the location. My code is if ($conf) { #entered data in the textbox &addconf; } In HTML, the submit button is <input type = "submit" name ="build" action ="sameform"> #goes to the same form i am loosing the $loc. For every submit, i have to give <input type = "hidden" name = "getvalue" value = "$loc"> If i had to add 5 rooms to location, i have to put 5 hidden fields to get the location. Is there a better way of doing it. Please help me
|