Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: submit button fails to pass the values using perl cgi?

by finddata (Sexton)
on Mar 30, 2017 at 10:22 UTC ( #1186476=note: print w/replies, xml ) Need Help??


in reply to Re: submit button fails to pass the values using perl cgi?
in thread submit button fails to pass the values using perl cgi?

Here if you click submit after selecting west FROM popup the submit should show the values as West.I had checked with inspect element for above code.But the submit button shown $0 as its value
  • Comment on Re^2: submit button fails to pass the values using perl cgi?

Replies are listed 'Best First'.
Re^3: submit button fails to pass the values using perl cgi?
by huck (Parson) on Mar 30, 2017 at 10:31 UTC
    I dont know what you are doing, what do you mean by I had checked with inspect element for above code.

    but this is the source of what i get back after selecting west.
    Popup1:West<br> <form method="post" action="/wx-bin/testsessions.pl" enctype="multipar +t/form-data"> <br> &nbsp<B>Sort</B> &nbsp<select name="popup1" > <option value="Building">Building</option> <option value="Nepal">Nepal</option> <option selected="selected" value="West">West</option> <option value="Landmark">Landmark</option> </select>&nbsp &nbsp &nbsp &nbsp &nbsp <input type="submit" name="sub +mit" value="submit" /></form>
    Of course my script is named "testsessions.pl" and is in the "wx-bin" cgi-bin directory, those values would probably change for you, but they are automaticly generated by start_form and should be the proper values for you. Why dont you try what i gave as an example and see what you get?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1186476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2019-12-08 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (162 votes). Check out past polls.

    Notices?