maynard49 has asked for the wisdom of the Perl Monks concerning the following question:
hi there im trying to create a name address and zipcode script and all i get is errors..yes im a newbie..trying to understand this..can someone help with a simple script please..it would be most appreciated...
you can also email me at maynard48@comcast.net
thanks
doug
#!/usr/local/bin/perl # $script_URL = "url of script goes here"; # use CGI; $query = new CGI; $name = ($query->param("f_name")); $tel = ($query->param("f_tel")); $zip = ($query->param("f_zip")); # if ($name$tel$zip eq '') { # &showform; # } else { # print "Name: $name<BR>\n"; print "Tel: $tel<BR>\n"; print "Zip: $zip<BR>\n"; } exit; ############## sub showform { ############## # print "<FORM ACTION=$script_URL METHOD=POST>\n"; print "<B>Name:</B> <INPUT TYPE=text NAME=f_name SIZE=24 value=\"$name +\"><BR>\n"; print "<B>Tel:</B> <INPUT TYPE=text NAME=f_tel SIZE=12 value=\"$tel\"> +<BR>\n"; print "<B>Zip:</B> <INPUT TYPE=text NAME=f_zip SIZE=5 value=\"$zip\">< +BR>\n"; print "<INPUT TYPE=submit VALUE=\"SUBMIT\">\n"; # }
2005-11-06 jdporter Inserted the content from Reaped: form script, which is very close to the original version of this node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with a form
by jdporter (Paladin) on Nov 06, 2005 at 17:42 UTC | |
|
Re: help with a form
by jZed (Prior) on Nov 06, 2005 at 19:08 UTC | |
|
Re: help with a form
by graff (Chancellor) on Nov 07, 2005 at 01:25 UTC |