Jump to content

Can someone help me with feedback page and PHP code?


Davetheguy

Recommended Posts

I get this error: 

Oops! Please ensure you have completed all fields before submitting the form.

Also ensure that there is only one email address.

All are filled out properly on the web page?

Can someone please help?

This is the page: http://www.blizzarddynamics.com/feedback_form.html

Link to comment
Share on other sites

This is the php.

I am new at this so please bear w me.. I do not know hos to add debugging echo's...

$email_address = $_REQUEST['email_address'] ;
$comments = $_REQUEST['comments'] ;
$first_name = $_REQUEST['first_name'] ;
$from = $_REQUEST['from'] ;
$picture = $_REQUEST['picture'] ;
$post = $_REQUEST['post'] ;
$msg = 
"First Name: " . $first_name . "\r\n" . 
"From?: " . $from . "\r\n" .
"Picture?: " . $picture . "\r\n" .
"Post?: " . $post . "\r\n" .
"Email: " . $email_address . "\r\n" . 
"Comments: " . $comments ;
 

Link to comment
Share on other sites

You don't know how to write an echo statement?  Basic PHP code.  Really.  Perhaps you should start with a guide and practice the hello world exercise.

 

PS - when using a form for input one should grab the data from either the GET array or the POST array and NOT from the REQUEST one.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.