Lunarpages Web Hosting Forum

Author Topic: php script for Dreamweaver contact form  (Read 28592 times)

Offline FrontPage

  • Spacescooter Operator
  • *****
  • Posts: 35
php script for Dreamweaver contact form
« on: July 02, 2013, 01:45:00 AM »
Are there any special instructions for creating a php script that works with Lunar Pages?  For example does this look compatible with LunarPages' server?  I actually just testing sending a message with my 3 field form (name, email, message) and it sent me an email that displayed everything except the email address field.

UPDATE: Disregard. It's working now so obviously Lunar Pages is compatible with php scripts and Dreamweaver.


$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "";
$subject = "message";

mail ($to, $email, $message, "From: " . $name);
echo "Your Message has been sent. Please use the backspace button on your browser to return to the previous page.";

« Last Edit: July 02, 2013, 12:25:49 PM by FrontPage »

Offline doncht

  • Intergalactic Cowboy
  • *****
  • Posts: 61
Re: php script for Dreamweaver contact form
« Reply #1 on: November 02, 2013, 10:47:25 AM »
Looks like a good one to me. I'll be trying this out and I'll update on how this goes for me. By the way, has anyone tested this yet?