Help - Search - Members - Calendar
Full Version: Contact Form With 2 Way Php Parsing
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
mikemacabre
Hello I'm doing this tutorial for my site. I've double and triple check my code. Everything is right ... to my little knowledge it is. Now i'm not asking for support on this tutorial or anything.. I just want to know since this is a free server and there are some limits. This being a free server would it affect this to where it will not work??

here is the link to the tutorial

http://www.developphp.com/Flash_tutorials/...rial.php?tid=43

the php contact parse code is

CODE
<?
/*
             ---     Created by Adam Khoury @ www.developphp.com      ---

*/
// Create local variables from the Flash ActionScript posted variables
$senderName   = $_POST['userName'];
$senderEmail     = $_POST['userEmail'];
$senderMessage = $_POST['userMsg'];

// Strip slashes on the Local variables for security
$senderName   = stripslashes($senderName);
$senderEmail     = stripslashes($senderEmail);
$senderMessage   = stripslashes($senderMessage);

// IMPORTANT - Change these lines to be appropriate for your needs - IMPORTANT
$to = "email@email.com ";  
$from = "$senderEmail";
$subject = "Contact from your site";
// Modify the Body of the message however you like
$message = "Message from your website:

Their Name:   $senderName

Their Email:   $senderEmail

Their Message is below:

$senderMessage";
// Build $headers Variable
$headers = "From: $from\r\n";
$headers .= "Content-type: text\r\n";
$to = "$to";
    // Send the email
    mail($to, $subject, $message, $headers);

// Assemble the message that goes back to Flash
// The flash ActionScript is looking for a return variable of "return_msg"
$my_msg = "Thanks $senderName, your message has been sent.";
// Print the data back to flash who is patiently waiting for it in the onCompleteHandler
    print "return_msg=$my_msg";
// Exit script
exit();
?>



I have everything filled out correctly on my contact php.. In the tutorial it ask just to replace the email part .. that its. rest is the same. I thinking that maybe this method of contacting does not work on these servers? I hope i provided enough info for you to understand what i'm asking here.
Ed
Due to the level of spamming that would occur from the hosting, we don't allow any form of mail. However if you pop on http://livechat.zymic.com/hosting, we can give you instructions on purchasing it for a one off $10 charge.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.