Web Hosting Forum | Lunarpages


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



Login with username, password and session length
April 25, 2014, 12:35:24 AM

Pages: [1]   Go Down
  Print  
Author Topic: php script for Dreamweaver contact form  (Read 14034 times)
FrontPage
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


« 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.

<?php

$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
doncht
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


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