Please Help Me - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-04-2008, 07:11 AM   #1 (permalink)
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
Old 03-21-2008, 01:38 PM   #3 (permalink)
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default Re: Please Help Me

why so much spam in these forums?
gururise is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:22 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting