cant you get one off cutandpastescripts.com and edit it? or
Printable View
cant you get one off cutandpastescripts.com and edit it? or
Hmmm.... i want to try a ASP one :P never had one of them before cos my server handles ASP :):)
Snoop i am actually good with Html :P i can make a jobs form i made them for my site they include; sending to email addresses ([email protected]) Redirect after send AND field Validation, Interested?
From what I ever learnt of ASP it is really difficult and to be honest I would suggest using a secure PHP form.
http://www.chrishardy.co.uk/asp/tuto...ail-cdosys.asp
Thats a tutorial for using a form with CDOSYS
but i have a Linux server Ill Use PHP then :) so can someone find one +rep if you do :)
I'm actually guessing that you know the HTML for the form so heres some basic PHP for it you will have to set the variables yourself.
Edit:PHP Code:<?php
// Subject
$subject ="$subject";
// Details
$message="$detail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='[email protected]';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
Theres the HTML as asked. All credit goes to P2L for this by the way.HTML Code:<form name="form1" method="post" action="send_contact.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%">Subject</td>
<td width="2%">:</td>
<td width="82%"><input name="subject" type="text" id="subject" size="50"></td>
</tr>
<tr>
<td>Detail</td>
<td>:</td>
<td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>
</tr>
<tr>
<td>Name</td>
<td>:</td>
<td><input name="name" type="text" id="name" size="50"></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><input name="customer_mail" type="text" id="customer_mail" size="50"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
Can you create the HTML form please im feeling lazy today :s dunno whyQuote:
Originally Posted by Raremandan
snoop i can make a HTml form. started it but i need you to verify the email address do this as soon as you can please.
he put the email on the first pageQuote:
Originally Posted by chris2k6