Click here to get back home

CGI.PM and print table

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
CGI.PM and print table dtshedd 04-13-2008
Posted by dtshedd on April 13, 2008, 12:13 pm
Please log in for more thread options
trying to replace this

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

with this

print table(
TR([
td([submit(),reset()])
])
);

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

original query string

http://192.168.1.1/rocket.pl?page=1&keywords_string=3

new query string

http://192.168.1.1/rocket.pl?page=1&keywords_string=3&.submit=Submit+Query

what does this mean?

appreciate the help

dts

Posted by A. Sinan Unur on April 13, 2008, 3:15 pm
Please log in for more thread options
dtshedd@yahoo.com wrote in
news:4f43ff50-5243-4389-9d1a-b93372017ec9
@m36g2000hse.googlegroups.co
m:

> trying to replace this
>
> print "<table>\n";
> print "<tr><td><input type=\"submit\"></td><td><input
> type=\"reset\"></ td></tr>\n";
> print "</table>\n";
>
> with this
>
> print table(
> TR([
> td([submit(),reset()])
>])
> );
>
> seems to work but then a new name/value pair for "submit" shows up
> in the browser address bar

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
further.

The HTML code you show above does not specify names for the input
elements. On the other hand, CGI.pm does specify names for the input
elements. Therefore, when the CGI.pm 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
parameter.

> original query string
>
> http://192.168.1.1/rocket.pl?page=1&keywords_string=3
>
> new query string
>
> http://192.168.1.1/rocket.pl?page=1&keywords_string=3
> &.submit=Submit+Query
>
> what does this mean?

Could you explain why you care?

Sinan

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

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/

Similar ThreadsPosted
print table inside while April 27, 2005, 10:58 am
How to print on the special table cell column? March 20, 2007, 11:33 pm
Formatting a single line without effecting the entire table with the Text::Table module March 10, 2005, 11:18 am
(",) Print This! Press [Ctrl][P] Keys To Print... >> http://www.phpbbserver.com/phpbb/viewtopic.php?t=2&mforum=anysubjectchat < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < May 30, 2005, 2:05 pm
* * * Please Read And/Or Print This! * * * Press [Ctrl][P] Keys On Your Keyboard To Print >> June 1, 2004 8:24:38 pm >> http://115639.aceboard.net/forum2.php?rub=158&cat=61&login=115639&page=0#id96 << * * * * * * * * * * * * * * * * * * * * * * * * * * * June 1, 2005, 6:24 pm
print @ versus print @ September 25, 2005, 9:53 pm
difference between print < August 16, 2006, 1:16 pm
Pb of key in a table September 20, 2005, 4:50 am
DBI and symbol table August 20, 2005, 3:12 pm
Help with a HTML table April 4, 2006, 8:47 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap