I've done everything in the web design field except contact forms , does anyone have a tutorial link on how to make contact forms using cgi script or javascript/SMTP? I have come across form generators but I need the cgi script or ajax.
Hi dude, try this generator http://www.tele-pro.co.uk/scripts/contact_form/ That may help. It's much easier to make them using PHP! Scott
Hi, I think that PHP is great for forms. Once you've submitted your form you collect all the information using something like this: $_POST['field_name'] For example if you have just one text field just called yourname, you can use it by something like this: $name = $_POST['yourname']; echo 'Hello, ' . $_POST['yourname'];
Isn't it as simple as creating a forum using the forum layout options in HTML then ading the relevant cgi script, maybe one from http://www.scriptarchive.com/formmail.html
here is the exact one that i use and it works fine.. it's PHP though... http://www.kirupa.com/web/form_mailer.htm hopefully that helps..
A lot depends on what scripts you can run on your server. I have an NT server, so I cannot run PHP, so I use vbScript (ASP). I can give you my script, if you have a Microsoft server...otherwise, sorry I can't help. P.S. Where did you generate the form?
heres the php code I'm using <?PHP $to = "tigersites@live.com"; $subject = "Information"; $headers = "From: Form1"; $forward = 0; $location = ""; $date = date ("l, F jS, Y"); $time = date ("h:i A"); $msg = "Below is the result of your feedback form. It was submitted on $date at $time.\n\n"; if ($_SERVER['REQUEST_METHOD'] == "POST") { foreach ($_POST as $key => $value) { $msg .= ucfirst ($key) ." : ". $value . "\n"; } } else { foreach ($_GET as $key => $value) { $msg .= ucfirst ($key) ." : ". $value . "\n"; } } mail($to, $subject, $msg, $headers); if ($forward == 1) { header ("Location:$location"); } else { echo "Thank you, we will get back to you ASAP."; } ?> Code (markup): Heres the test version http://websitetiger.freehostia.com/2/ . I've used live.com (hotmail) and aim.com but both don't work could that be the problem?
Unfortunately I don't think you can make a good script using javascript or html. The only way you could really code something to do a specific task such as using e-mail, you have to use PHP. If you search on Google you will find many scripts that allow you to make a contact form .
Yeah I'm using PHP now but look at my post before this one I have the code there it just doesn't work, I'm guessing its because of the email, not sure though...