Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does this line of code mean in HTML? 1

Status
Not open for further replies.

avinsinanan

Programmer
Jul 14, 2002
92
TT
Hello I am trying to create a form. The form is filled out and then the info is emailed to my email address.

I went to a website which had a form and obtained the HTML code for the page. My plan was to alter their HTML form code
so I could make one.

The site I used was:

I used their code and changed thier email address to mines. But it doesn't work.

The line of code used to make the web site I am confused about is:

<FORM NAME=&quot;information&quot; ACTION=&quot;/cgi-bin/fmail.pl&quot; METHOD=POST>

I tried erasing this line and it didn't work either.

How do i make the form work for me. And what does that line of code mean above?

Thanks.

Yours Respectfully
Avin Sinanan
 
Hi,

The only way you will get that to work is if you have that fmail.pl file. That is a server side script that mails the form to the site owner/creator/whatever unless you have that file, that particular code won't work for you. You will have to get a script for yourself their are a bunch at
That code means, it is a form with the name being information the action when pushing the submit button goes to the /cgi-bin/fmail.pl file and the form is posted to that fmail.pl file.

Hope this helps! NATE
design@spyderix-designz.com
 
ok thank you.... i will look at that web site and see what i can find.
Thanks mate
 
Hello Spyderix,

The fmail.pl file I am still confused.
I am assuming this file will have to be uploaded to my website just like my index files?

Yours respectfully
Avin Sinanan
 
Hi,

You will have to make sure that your webhost has PERL installed. A .pl file will not work if your host does not support PERL scripts. Once you get a form mailer from somewhere then you will upload it to your website. Then on your form you would put in <FORM NAME=&quot;your form name&quot; ACTION=&quot;your mailer script.pl&quot; METHOD=&quot;POST&quot;>

Usually people put scripts like that in the cgi-bin folder, I do. You also have to name each one of your <INPUT>'s with a specific name and then configure the PERL script to match your INPUT names.

Hope this helps! NATE
design@spyderix-designz.com
 
Thanks,

Wow thats a lot of work .
But I'll get cracking on it now.

Thanks
 
avinsinanan,
Find out from your server what formmail program they are using.
It will be like formmail.cgi, fmail.pl or one of those.
Then change the red to the path of your mail program.

<FORM NAME=&quot;information&quot; ACTION=&quot;/cgi-bin/fmail.pl&quot; METHOD=POST>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top