CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
adding data through a submit button

 



datlaravi
Deleted

Jun 22, 2000, 8:08 AM

Post #1 of 1 (620 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

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives