Jump to content

john510

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

john510's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the help.. I just found another forum thats helping me.. Thanks again.. Goodbye..
  2. And one other thing if you cant help dont bother replying cause your just sitting here bashing me cause you dont know
  3. No as I said I went to the above site where you enter the data in but there was no option for the IP. I never said it was my script and you seem to come up with a idea i said it was.
  4. Ok which part is the "relevent part that is needed and I will post that. I have: class.phpmailer config1152128398.php form1152128398.php inc_mail.php process1152128398.php All these performt he mail action..Which one can I post for you ?
  5. I cannot post the code cause the forum says the following when i try: [b] The following error or errors occurred while posting this message: The message exceeds the maximum allowed length (40000 characters). [/b] Thats why I did it in a file.
  6. The code is above in a download. Look up there are several files.
  7. Here are the forms , dont know where to put the IP and no I dont want the ip to show to the user just it sent to the person gettingthe mail. There are several forms.. [attachment deleted by admin]
  8. Which one of the files and how do I format it to get the IP using this?
  9. Im using the form at http://www.eformmailer.com/ to create a from just an simple form with a name, but all so what to know the IP number of the person sending the form. Is there a way to add to this form the IP number of the person sending the form in the email sent?
  10. no, I tried these , this does not forward to the commentsent.htm page.... ?
  11. Im trying to have my page go to another URL after my form has been sent but dont understand what Im doing wrong! I can get the alert message after the completion of the form but not the forward to the new html page. Here is the top of my script where Im haing a problem: [code] <? session_start(); include_once("admin/inc.php"); include_once("header_inc.php"); if ($_POST['action'] == "go") { session_save_path("/home/users/web/b620/pow.mysite/classifieds/");   $name = $_POST['name'];   $email = $_POST['email'];   $content = $_POST['content'];   $IP = $_SERVER['REMOTE_ADDR'];   if (!preg_match("(^[-\w\.]+@([-a-z0-9]+\.)+[a-z]{2,4}$)i", $email)) $alert = "You have entered an invalid email address.";   if ($name == "" OR $email == "" OR $content == "") $alert = "To send a message, please complete all 3 fields.";   if ($_SESSION['mail_count'] >= "3") $alert = "Only 3 messages can be sent per session.";   if (!$alert) {     if (!isset($_SESSION['mail_count'])) $_SESSION['mail_count'] = 0;     $_SESSION['mail_count']++;     $message .= "Name as follows:\n\n";     $message .= "$name\n\n";     $message .= "Email address as follows:\n\n";     $message .= "$email\n\n";     $message .= "Message as follows:\n\n";     $message .= "$content\n\n";     $message .= "IP address is: $IP\n\n";     mail("john@mysite.com", "Mysite.com Message" , "$message", "From: Mysite Message Center <>");     $name = "";     $email = "";     $content = "";     $alert = "Your message has been sent."; header("Location: commentsent.htm");   } } ?> [/code] It should forward  to the "commentsent.htm" page after the form is successfully sent.
×
×
  • 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.