cgi help...

cgi help...

Posted by: wargoth
Posted on: 2007-03-02 23:22:00

not exactly new to web design, but I am CGI lliterate, and need a bit of help. I need to run a cgi script on my account to mail form data to me. anyone wanna offer me some help with this. I have the form itself written, but no clue how to get it to post via a cgi.

Re: cgi help...

Posted by: rlparker
Posted on: 2007-03-03 00:26:00

Did you take a look at http://formmail.dreamhost.com? There is a pretty good overview of how to get your form working with the DH supplied formmail.cgi that is available for all DH users.

If you have trouble after looking at that, post back with your problems and/or explain what you don't understand, and I'm sure you will get plenty of help. wink

--rlparker

Re: cgi help...

Posted by: Raz2133
Posted on: 2007-03-03 00:37:00

In reply to:

http://formmail.dreamhost.com


As an example of how to use the DreamHost formmail.cgi, below is a simple 'Contact Form' I am using on one of my sites...

<form id="form1" name="form1" method="POST" action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi">
<input type=hidden name="recipient" value="someone@example.com">
<input type=hidden name="required" value="email, realname, message">

<p>
<label>Your Email Address<br />
<input name="email" type="text" size="60">
</label>
</p>

<p>
<label>Your Name<br />
<input name="realname" type="text" size="60">
</label>
</p>

<p>
<label>Subject<br />
<input name="subject" type="text" size="60" value="General Enquiry">
</label>
</p>

<p>
<label>Enter Your Message Here<br />
<textarea name="message" cols="60" rows="10" wrap="physical"></textarea>
</label>
</p>

<p>
<input type="submit" value="Submit" />
</p>

</form>


The formatting probably won't survive, but it might be of some use to you.

Mark

Tags: mail formcgi scriptclueweb design