Jump to content

Manbhatti

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Manbhatti's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have used this script with $_POST['name'], but did not work. I think something has to do with connecting ISP mail server, is there any suggestion please?
  2. Following are the codes for HTML form: " <FORM action="5-sendmail.php" method="POST"> <p><strong>Name:</strong><br> <INPUT type="text" size="25" name="name"></p> <p><strong>E-Mail Address:</strong><br> <INPUT type="text" size="25" name="email"></p> <p><strong>Message:</strong><br> <textarea name="message" cols=30 rows=5></textarea></p> <p><INPUT type="submit" value="send"></p> </FORM> " These are codes for php processing file " <?php echo "<p>Thank you, <b>$_POST[name]</b>, for your message!</p>"; echo "<p>Your e-mail address is: <b>$_POST</b>.</p>"; echo "<p>Your message was:<br>"; echo "$_POST[message] </p>"; //start building the mail string $msg = "Name: $_POST[name]\r\n"; $msg .= "E-Mail: $_POST\r\n"; $msg .= "Message: $_POST[message]\r\n"; //set up the mail $recipient = "manbhatti@hotmail.com"; $subject = "Form Submission Results"; $mailheaders = "From: My Web Site <defaultaddress@yourdomain.com> \r\n"; $mailheaders .= "Reply-To: $_POST"; //send the mail mail($recipient, $subject, $msg, $mailheaders); ?> " Look forward to receive your reply! thanks
  3. I ‘m new to php. I am running XP and installed wamp5 .. I developed a mail form using php mail() function. Some reason it is not firing email . Someone suggested I need a host to this form working, I hosted this file but still this not worked. I tried various setting, none worked. Anyone know exactly what cofig. of SMTP setting I need to make. (I tried various setting still having problem) I will appreciate if some one post me working script which I can test. Regards ManBhatti
  4. Hi, 1) I am running XP (home edition), with no IIS. I installed Apache (httpd-2.0.55-win32-src), which run ok; I can view an htm file i.e [a href=\"http://localhost/hello.htm\" target=\"_blank\"]http://localhost/hello.htm[/a]. Thereafter I run php4.exe (php-4.4.2-Win32). When I tried .php file I receive error “Page cannot be found.” please let me why I can not run the file and how to correct it. 2) Is possible to run php on IIS, if yes, please let me know how. thanks Manbhatti
×
×
  • 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.