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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.