Thread: Please Help Me
View Single Post
Old 03-04-2008, 07:11 AM   #1 (permalink)
ByNsk
Junior Member
 
Join Date: Mar 2008
Posts: 1
Unhappy Please Help Me

Html Code

Code:
<link href="style.css" rel="stylesheet" type="text/css"> <FORM style="BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-RIGHT-WIDTH: 0px" name=send2 action=send.php method=post> <TD> <TABLE class=dk cellSpacing=1 cellPadding=2 width="34%" border=0> <TBODY> <TR bgColor=#f8f5f1> <TD width=130>&nbsp;&nbsp;Name</TD> <TD align=middle width=10><STRONG>:</STRONG></TD> <TD>&nbsp; <INPUT class=form size=32 name=name> </TD></TR> <TR bgColor=#f8f5f1> <TD>&nbsp;&nbsp;Profile</TD> <TD align=middle width=10><STRONG>:</STRONG></TD> <TD>&nbsp; <INPUT class=form size=32 name=profile> </TD></TR> <TR bgColor=#f8f5f1> <TD>&nbsp;&nbsp;Tel</TD> <TD align=middle width=10><STRONG>:</STRONG></TD> <TD>&nbsp; <INPUT class=form size=32 name=tel> </TD></TR> <TR bgColor=#f8f5f1> <TD>&nbsp;&nbsp;E-Mail</TD> <TD align=middle width=10><STRONG>:</STRONG></TD> <TD>&nbsp; <INPUT class=form size=32 name=email> </TD></TR> <TR bgColor=#f8f5f1> <TD>&nbsp;&nbsp;Subject</TD> <TD align=middle width=10><STRONG>:</STRONG></TD> <TD>&nbsp; <INPUT class=form id=subject size=32 name=konu> </TD></TR> <TR bgColor=#f8f5f1> <TD vAlign=top>&nbsp;&nbsp;Message</TD> <TD vAlign=top align=middle width=10><STRONG>:</STRONG></TD> <TD>&nbsp; <TEXTAREA class=form name=message rows=4 cols=32></TEXTAREA></TD></TR> <TR bgColor=#f8f5f1> <TD>&nbsp;</TD> <TD width=10>&nbsp;</TD> <TD>&nbsp; <INPUT class=form onClick="return Control(send2)" type=button value=Send name=send> <INPUT class=form type=reset value=Clear name=Submit2></TD></TR></TBODY></TABLE></TD></FORM>


Send Code

Code:
<?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $notes = $_POST['notes']; $attn = $_POST['attn']; if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); } if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "<h2>Use Back - Enter valid e-mail</h2>\n"; $badinput = "<h2>Feedback was NOT submitted</h2>\n"; echo $badinput; die ("Go back! ! "); } if(empty($visitor) || empty($visitormail) || empty($notes )) { echo "<h2>Use Back - fill in all fields</h2>\n"; die ("Use back! ! "); } $todayis = date("l, F j, Y, g:i a") ; $attn = $attn ; $subject = $attn; $notes = stripcslashes($notes); $message = " $todayis [EST] \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; mail("yourmail@mail.com", $subject, $message, $from); ?><style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; } --> </style> <p align="center"> Date: <?php echo $todayis ?> <br /> Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) <br /> Attention: <?php echo $attn ?> <br /> Message:<br /> <?php $notesout = str_replace("\r", "<br/>", $notes); echo $notesout; ?> <br /> <?php echo $ip ?> <br /><br /> </body> </html>


I could not make work please you obtain a beloved
ByNsk is offline   Reply With Quote
Sponsored Links