Forum Moderators: coopster

Message Too Old, No Replies

NEWBIE - help with "feedback form" (php)

Generated by thesitewizard.com's Feedback Form Wizard 2.13.0

         

sue_r_b

1:15 am on Jun 28, 2010 (gmt 0)

10+ Year Member



The Good:
--> My form is taking people's info, email address, etc. etc. & when they hit submit, they are successfully getting redirected to my Thankyou page.
--> The email I receive shows their name & their email address

The Bad:
--> All of the comments fields are being returned blank. (I have about 8 different fields asking various questions)

Any idea where I should start to try to fix this? I have pretty good knowledge of HTML, but just about ZERO understanding of what php is actually doing....hence this is why I had to use the "sitewizard" Feedback Form.

Thanks in advance!

:-(

sue_r_b

3:37 am on Jun 28, 2010 (gmt 0)

10+ Year Member



FIXED!

All I needed was more of these for each of my "questions"

$email = $_POST['email'] ;

PHEW!

Curious...my form used to work without the extra lines I added tonight -- any idea if a server changing from PHP4 to PHP5 was what "broke" my form?

dreamcatcher

7:04 am on Jun 28, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi sue_r_b, welcome to WebmasterWorld. :)

Glad you sorted your problem. It looks like its related to Register Globals:
[php.net...]

With this setting off, you MUST use the supergobal $_POST. The Register Globals directive has been deprecated since PHP5.3, so using $_POST is the correct way to do it.

Register Globals was ON by default with earlier versions of PHP, and indeed some hosts enabled it anyway by default or gave you an option to enable it. Sounds like your server got upgraded and the directive is OFF by default, hence the none working of your code.

dc