Jump to content

piercam03

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

piercam03's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. im sorry to say but only orio's worked but thankyou every one else for trying woooooooo
  2. hi i have some code... [code]<? // Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you  // retain the credit link  // get posted data into local variables $EmailTo = "piercam03@gmail.com"; $Name = Trim(stripslashes($_POST['Name'])); $Email = Trim(stripslashes($_POST['Email'])); $Subject = Trim(stripslashes($_POST['Subject'])); $Message = Trim(stripslashes($_POST['Message'])); $Rating= Trim(stripslashes($_POST['Rating'])); $IP= $_SERVER["REMOTE_ADDR"]; // validation $validationOK=true; if (!$validationOK) {   echo "Error";   exit; } //THE ERRORS if (Trim($Name)=="") {   echo"The Name Filed Was Empty";   exit; } elseif (Trim($Email)=="") {   echo"The Email Field Was Empty";   exit; } elseif (Trim($Message)=="") {   echo"The Message Field Was Empty";   exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Subject: "; $Body .= $Subject; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; $Body .= "Rating: "; $Body .= $Rating; $Body .= "\n"; $Body .= "IP: "; $Body .= $IP; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$Email>"); // redirect to success page if ($success){   echo"<div id=\"main\"><h2>SUCCESS!</h2>Here is the information sent as you provided:<br> Name: $Name <br> Email: $Email <br> Message: $Message <br> Rating: $Rating <br> Your IP address was also stored, IP: $IP <br><br> Press F5 on your keyboard to return to where you were previously or select a page from the navigation bar on the left. <br><br>"; } else{   echo"<br><h2>ERROR</h2> Sorry, there was an error. <br><br> *NOTE* you MUST NOT click the contact page on the navigation bar or all the fields you filled in will be reset, If however you press the BACK button on your browser you will return to the form with your previous information saved."; } ?>[/code] basically when you fill out my form (www.iplay.co.nr/contact.php) its uses this file to send your details, the only problem is i can only get it to show one error at a time so even if the name and email fields are blank it only says the name one is, then once youve filled in the name one it tells you that the email is blank, how can i get it to show all of my errors together
  3. i deleted the / anmd it sent the message but it doesnt stop me from resending another one
  4. i just get an error : Parse error: syntax error, unexpected '/' in /home/iplaynee/public_html/main.php on line 11
  5. hey, i have some code : [code]<center> <form action="" method="post"> Victim Email:<br> <input type="text" name="recipient" size="25" value="e.g. name@domain.com"> <br> Sender Name: <br> <input type="text" name="name" value="e.g. Charles Ray" size="25"> <br> Sender Email: <br> <input type="text" name="email" value="e.g. name@domain.com" size="25"> <br> Subject: <br> <input type="text" name="subject" size="25" value="e.g. hello!"> <br> Text:<br> <textarea name="message" cols="20" rows="6">Enter the message body here</textarea><br> <input type="submit" name="submit" value="Send"> <br><br> <?php if ($submit) { if($name && $subject && $email && $message ) { mail("$recipient","$subject","$message","From: $name <$email>") or die("email error"); echo "Message Sent"; / } else { echo "All fields must be filled in!<BR>"; } } // end php submission code ?></form> <body> <p>&nbsp;</p> </body>[/code] What it lets you do is send email form the web using a simple form. i am currently gettin so many people usin it that i am crashing my hosts servers and i was wondering if anyone knew hot to make it once sent that a cookie is put on your system disableing you from sendin another message untill the cookie expires (5 mins) thanks. to visit go to www.anonymail.co.nr also how can i make it so tht if certain words are entered then it doesnt send
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.