CGI.PM and print table

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
trying to replace this

print "<table>\n";
print "<tr><td><input type=\"submit\"></td><td><input type=\"reset\"></
print "</table>\n";

with this

print table(

seems to work but then a new name/value pair for "submit" shows up in
the browser address bar

original query string

new query string

what does this mean?

appreciate the help


Re: CGI.PM and print table wrote in

Quoted text here. Click to load it

It seems to me that there are gaps in your knowledge of HTML and CGI
and you might want to learn more about those topics before going any

The HTML code you show above does not specify names for the input
elements. On the other hand, does specify names for the input
elements. Therefore, when the generated HTML code is used,
form submission causes the name-value pair for the submit button
that was used to be submitted along with the rest of the data.

There is a good reason for this. For example:

<input type="submit" name="action" value="Copy">
<input type="submit" name="action" value="Move">
<input type="submit" name="action" value="Delete">

Then, your script can take actions based on the value of the action

Quoted text here. Click to load it

Could you explain why you care?


(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW: /

Site Timeline