Computing.Net > Forums > Web Development > Needing a free CGI --!!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Needing a free CGI --!!!

Reply to Message Icon

Name: dario130
Date: March 20, 2004 at 22:29:46 Pacific
OS: XP Pro
CPU/Ram: 128
Comment:

hi , well , i am looking for a free CGI that supports form for my website , and send the information to my mail and also i need that i can put my own "thanks" page after the form.
Thank you
for your help



Sponsored Link
Ads by Google

Response Number 1
Name: Khalid
Date: March 20, 2004 at 23:39:44 Pacific
Reply:

A very simple one, written in PHP. Your server must allow you to use PHP-scripts, and allow you to use SMTP.

The form you can use looks like this, alter it to fit your style:

<form method="post" action="mail.php">
Name:
<input type="text" name="Name" size="40" maxlength="40">
Your Email:
<input type="text" name="Email" size="40" maxlength="40">
Your message:
<textarea name="Message" rows="6" cols="30">
</textarea>
<input type="submit" value="Mail me">
</form>

Then, make a new file called "mail.php" and put in the following code (within the HTML-tags, and dont forget the <? and ?>):
<?
$Email=$_POST['Email'];
$Name=$_POST['Name'];
$Message=$_POST['Message'];
$mailbody = $Message;
$mailbody .= "\n\n\nName: ".$Name." ".$Email;
$mailrecieve = "your@mail.com";
$mailsubject = "Message from site";
$mailfrom = "From: YourName";
mail($mailrecieve, $mailsubject, $mailbody, $mailfrom);
$result = "Your message has been sent";
?>

Off course there are many more advanced mailscripts with validation and so on, but this the most simple one you can imagine...


0

Response Number 2
Name: safeTsurfa
Date: March 21, 2004 at 04:11:20 Pacific
Reply:

Search on Google for CGI scripts, PHP scripts, there are plenty of free script sites covering anything you want from scripts.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Needing a free CGI --!!!

Need a free horizontal menu www.computing.net/answers/webdevel/need-a-free-horizontal-menu/432.html

Need a CGI Guru www.computing.net/answers/webdevel/need-a-cgi-guru/613.html

i need a couple scripts www.computing.net/answers/webdevel/i-need-a-couple-scripts/718.html