Wow Web Designs Forums Home

Search
   
Members

Calendar

Help

Home
Search by username
Not logged in - Login | Register 
Wow Web Designs Forums > Scripting > HTML & CSS > How do I point an HTML to a CGI Script


How do I point an HTML to a CGI Script
 Moderated by: Aycan  

New Topic

Reply

Print
AuthorPost
acabales
Member


Joined: Mon Mar 10th, 2003
Location: Makati, Philippines
Posts: 18
Status:  Offline
Mana: 
 Posted: Mon Mar 17th, 2003 02:20 pm

Quote

Reply
I actually downloaded a script from the internet that will send a contact form to my e-mail address. The instruction says that I should point the html to the cgi script, how do I do that?

Also do you have any other suggestions about having a contact form??

Thanks

Aycan
Administrator
 

Joined: Wed Nov 29th, 2000
Location: Columbus, Ohio USA
Posts: 146
Status:  Offline
Mana: 
 Posted: Mon Mar 17th, 2003 04:49 pm

Quote

Reply
You need a few lines of HTML code to create a contact form that looks something like this:
<FORM METHOD="post" ACTION="/path.to/your_cgi_script">
Name: <INPUT TYPE="text" NAME="name"><BR>
E-Mail: <INPUT TYPE="text" NAME="email"><BR>
<INPUT TYPE="submit">
</FORM>

Don't forget to replace the value of the ACTION attribute with the real path and name of your CGI script such as "/cgi-bin/formmail.pl". If you configured the CGI script right, it should then send the contents of the form to you via e-mail.

Finally, I recommend using PHP rather than CGI because PHP has built-in support to handle form data, and also PHP scripts are usually easier-to-install and configure.

nightshade
Member


Joined: Thu Apr 17th, 2003
Location: New Haven, Connecticut USA
Posts: 57
Status:  Offline
Mana: 
 Posted: Sun Apr 20th, 2003 01:49 am

Quote

Reply
Sounds like you're aching to learn some basics to a programming language.

Many HTML books discuss the form side but leave out the response side, since it's server specific. And many programming books, the opposite.

And I can understand whatever frustration you may have in trying to get your form to work. You are a beginner (or wanting to be a beginner).

Although Aycan's preference is PHP, mine is ASP. Review some of the programming languages and decide what you'd like to do. If it's ASP, the, I recommend picking up Wrox Press's, "Beginning Active Server Pages 3.0". ISBN 1-86100303802


 Current time is 01:10 pm




Powered by WowBB 1.7 - Copyright © 2003-2006 Aycan Gulez
Page processed in 0.1583 seconds (17% database + 83% PHP). 17 queries executed.