User Profile

Collapse

Profile Sidebar

Collapse
snapscan
snapscan
Last Activity: Nov 20 '08, 06:29 PM
Joined: Nov 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • snapscan
    replied to Problem with php code for a mail contact form
    in PHP
    Thanks for the response,

    I have changed the line echo ("your message was successfully sent!");
    However I get the same problem but your point about closing () would the line
    mail("XXX@XXXXX ", $subject," need to be changed / closed

    Thanks
    See more | Go to post

    Leave a comment:


  • snapscan
    replied to Problem with php code for a mail contact form
    in PHP
    Sorry


    The error message is at the end of the code, On my email form I input a name, email address and text. Then I press the submit button and get a window opening 300X 300 with the text listed at the end of the code. No email is sent. I am testing the code on a laptop using XAMPP. The variable name and email address are listed at the top of the window so they look to be set OK . The prblem looks to be with the email comand...
    See more | Go to post

    Leave a comment:


  • snapscan
    started a topic Problem with php code for a mail contact form
    in PHP

    Problem with php code for a mail contact form

    Hello,

    I am new to PHP code and I have copied the following code from the internet to create a contact page on my web site.


    Code:
    <?
    $subject="from ".$_GET['your_name'];
    $headers= "From: ".$_GET['your_email']."\n";
     $headers='Content-type: text/html; charset=iso-8859-1';
    mail("<emailremoved>", $subject,"
    <html>
    <head>
    ...
    See more | Go to post
    Last edited by Markus; Nov 14 '08, 09:56 PM. Reason: added # tags & removed email
No activity results to display
Show More
Working...