Jump to content

ISSUE!! :)


7pm

Recommended Posts

If you surround your code with the bbcode "CODE" tags it'd be easier to read.

Also, I suggest being a little more specific with what your problem is instead of just saying it doesn't work.

Try and say what you want it to do, what it isn't doing and what data you're throwing at it - will increase the chances of some help.

But! Saying that I did see this little abnormality:
[code]if(!$name or !$email or !$address) {[/code]
Try changing to:
[code]if(!$name || !$email || !$address) {[/code]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25423
Share on other sites

Well not sure how else to say it, "it doesn't work anymore", lol. But thank you for that code check i'll try that change up.
This was originally created and tested in [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=87985&st=\" target=\"_blank\"]THIS[/a] thread. I don't get why it's not working anymore.

I'm also checking with my webhost to make sure PHP is installed and working properly on the main server.



[!--quoteo(post=363218:date=Apr 10 2006, 04:40 AM:name=Yesideez)--][div class=\'quotetop\']QUOTE(Yesideez @ Apr 10 2006, 04:40 AM) [snapback]363218[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If you surround your code with the bbcode "CODE" tags it'd be easier to read.

Also, I suggest being a little more specific with what your problem is instead of just saying it doesn't work.

Try and say what you want it to do, what it isn't doing and what data you're throwing at it - will increase the chances of some help.

But! Saying that I did see this little abnormality:
[code]if(!$name or !$email or !$address) {[/code]
Try changing to:
[code]if(!$name || !$email || !$address) {[/code]
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25425
Share on other sites

Just located another topic I helped with emails: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90555\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90555[/a]

Make sure the header is formatted properly as I've had problems with it before myself and realised I'd been a bit too tired and missed something off the end.

If at the end you still have problems, try using ECHO to display the contents of the variables passed to mail() so you can see exactly what they contain - weird stuff can happen to their contents with a missing quote or misplaced full stop.
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25429
Share on other sites

The header in the php you mean between the <head> section like at the top of html? Like I said i'm bad with this stuff. Also, not sure how to use that ECHO feature.


[!--quoteo(post=363224:date=Apr 10 2006, 04:53 AM:name=Yesideez)--][div class=\'quotetop\']QUOTE(Yesideez @ Apr 10 2006, 04:53 AM) [snapback]363224[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Just located another topic I helped with emails: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90555\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90555[/a]

Make sure the header is formatted properly as I've had problems with it before myself and realised I'd been a bit too tired and missed something off the end.

If at the end you still have problems, try using ECHO to display the contents of the variables passed to mail() so you can see exactly what they contain - weird stuff can happen to their contents with a missing quote or misplaced full stop.
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/7002-issue/#findComment-25431
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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