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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.