Log in

View Full Version : Contact forms



:alexxTURNER
22-10-2006, 07:43 PM
How do I get a contact form on my site like this one?

http://www.olivierpauwels.com/index.php?page=contact

RNelson
22-10-2006, 07:47 PM
Maybe ask Oli

Jackboy
22-10-2006, 08:29 PM
To do that:



<HTML>
<form name="contact" method="POST"action="process.php">
<p>Your Name:<br>
<input type="text" size="45" name="name">
<br>
Your E-Mail Address:<br>
<input type="text" size="45" name="email"><br>
Subject<br><select name="Subject">
<option value=" Request a service ">Request a service </option>
<option value=" Order a template ">Order a template </option>
<option value=" Report a bug ">Report a bug </option>
<option value=" Become an affiliate ">Become an affiliate </option>
<option value=" Webmaster ">Webmaster </option>
</select><br>Your Messsage:<br><textarea name="message" rows="7" cols="50"></textarea><br><input name="send" type="submit" value="Send"></td></p></form>


Then make a file called process.php and put this in it:



<?
$to = [email protected];
$from = $_POST[email];
$subject = $_POST[subject];
$message = $_POST[message];
mail ("$to", "$subject", "$message", "From: Contact Form<$subject>");
echo ("You have successfully contact us<BR><BR><BR><BR>Coded By Atomic Network Productions");
?>


+rep plz ;)

Php because im lazy mwuaha

:alexxTURNER
22-10-2006, 08:39 PM
Hm, I do not understand any of that.
I'll just get somebody to put it on for me lol.

DuHast
22-10-2006, 08:41 PM
I may be way past tense here but Carl used to do a PHP Form Handler on Thybag I don't know if he still does and I can't be bothered logging onto MSN to ask him.

Jackboy
22-10-2006, 09:11 PM
Lol are u on freewebs alex?

primal
22-10-2006, 10:40 PM
Whats wrong with that PHP way.

Seems fine to me, the process.php page will defenatelly work, it iwll send an email to whatever address you tell it to.

Jackboy
23-10-2006, 08:12 AM
Yaahhsss. Im betting hes on freewebs though. Although u can use html to email it, you can't beat php ;)

adm
23-10-2006, 08:23 AM
She*

I don't think she is.

Jackboy
23-10-2006, 08:25 AM
oh. Sorry i thought by the name is was a He
;p

adm
23-10-2006, 08:34 AM
Gender: Female
:rolleyes:

Jackboy
23-10-2006, 08:35 AM
My bad..

Want to hide these adverts? Register an account for free!