php not working - was working yesterday! please help

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

mccannio
Forum Newbie
Posts: 13
Joined: Mon Feb 05, 2007 6:53 am

Post by mccannio »

the email address is fine. and the code was working perfectly yesterday but i cannot understand why it is not working now :(
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

mccannio wrote:the email address is fine.
If I enter foo@bar into the form your script accepts the address but it's not "fine".
mccannio
Forum Newbie
Posts: 13
Joined: Mon Feb 05, 2007 6:53 am

Post by mccannio »

do you mean is the email address working?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You are not checking to make sure there is actually posted data. When you reference $_POST and there is no $_POST array information, you are going to get errors.

Before any of the other stuff, and before you try assigning vars from the POST array, try a var_dump($_POST) to see what your app is seeing.
Post Reply