Web Hosting Forum | Lunarpages

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
May 22, 2015, 12:42:33 PM

Pages: [1]   Go Down
Author Topic: php script for Dreamweaver contact form  (Read 22170 times)
Spacescooter Operator
Offline Offline

Posts: 33

« 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 = "myname@mydomainname.com";
$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 » Logged
Intergalactic Cowboy
Offline Offline

Posts: 59

« 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?
Pages: [1]   Go Up
Jump to: