Setting Up a Form

I'm setting up a form on a site for people to fill out and sent thier info to me, so I can send them a catalogue in the mail. Can anyone cut and paste some code with some instructions on how to interface with the cgi bin on my website. I'm a little confused on the cgi-perl script and what to do with it
Thank You
abloganAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GimpsterCommented:
<FORM ACTION="http://domain.name/cgi-bin/script.cgi METHOD=Post_or_Get ID=Form_id>

*Place Input Here*

</FORM>

----------------------------

To use a form that accesses a cgi script, you must first know where the cgi scripts are located on your server.  Typically, they are located in the cgi-bin folder directly under the domain name.  Once you know where the scripts go, then you put that URL in for the ACTION.  Then for the METHOD, you need to know how the script parses the incoming data.  If it requires that the information be passes by the GET method then you'll have to use that one.  But if the script works with either POST or GET, then I would recommend using the POST method, because with the GET method you can only pass a maximum of 255 characters.  Also, you will need to make sure that you can even run CGI scripts on your server.  Because CGI scripts are such a huge security risk, many servers do not allow them.  Other than that, you just need to provide the user with the places to enter the data you want sent to you.  That would go between the <FORM> and </FORM> tags.  Make sure you put a "Submit" button before the closing </FORM> tag.  Otherwise they will not be able to send it to you.  To put the "Submit" button in you would type "<INPUT TYPE=SUBMIT ID=Submit_id VALUE=Text_displayed_on_button>"  No closing tag is needed.  That should be all you need to know.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
abloganAuthor Commented:
Thank You for your help. I'm on a real close deadline and don't have much time (midnight 2 night) to figure it out
Al
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.