php form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

Thanks

Post by pauspling »

Oh, sorry. It came out wrong. I absolutely respect you and I am greatful for your help. I suppose I've just had some bad expereince when it comes to forums and when everyone was saying "my code works fine" and it didn't, I assumed that you might be trying to make fun of me. Sorry for that.
pauspling
Forum Newbie
Posts: 24
Joined: Thu Nov 17, 2005 4:06 pm

Grim

Post by pauspling »

Grim, I tried to implement your code and get the following error messages:

Code: Select all

Notice: Undefined index: pleasure in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 13

Notice: Undefined index: arousal in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 14

Notice: Undefined index: dominance in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 15

Notice: Undefined index: event in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 16
I suppose I get the messages because the text fields are empty when you first open the page. How did you solve this problem?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Grim... wrote:
hawleyjr wrote:Tested mine, works fine :)
The first input field needs the $fst_num, not $snd_num, and the ans_num field needs a value... :?
Oops, what was I thinking :)
pauspling wrote:Grim, I tried to implement your code and get the following error messages:

Code: Select all

Notice: Undefined index: pleasure in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 13

Notice: Undefined index: arousal in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 14

Notice: Undefined index: dominance in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 15

Notice: Undefined index: event in C:\Program Files\Apache Group\Apache2\htdocs\test22.php on line 16
I suppose I get the messages because the text fields are empty when you first open the page. How did you solve this problem?
Grim... code is fine. the error you are receiving is because of your php settngs.

Here is a resource in the manual that will help you:

http://us3.php.net/error_reporting

PS, Look at: error_reporting(0);
Post Reply