Jump to content
Davetheguy

Can someone help me with feedback page and PHP code?

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

Share this post


Link to post
Share on other sites

Hmmm? I see the it worked for you! I got the feedback as well, but it still will not let me complete it and still gives me that error?

Any thoughts on why?

I'm stumped?

Dave

Share this post


Link to post
Share on other sites

Shouldn't we be seeing the code rather than doing testing?  Why don't you add some debugging echos to the code to test out what is happening?

Share this post


Link to post
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 ;
 

Share this post


Link to post
Share on other sites

This is a strange problem. There is no code outputting the message you are seeing.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

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.