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.
In reply to help with a form by maynard49
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |