Jump to content


Photo

ISSUE!! :)


  • Please log in to reply
7 replies to this topic

#1 7pm

7pm
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 10 April 2006 - 07:57 AM

MOVED TO 'PHP HELP'

#2 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 10 April 2006 - 08:40 AM

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:
if(!$name or !$email or !$address) {
Try changing to:
if(!$name || !$email || !$address) {

Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#3 7pm

7pm
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 10 April 2006 - 08:43 AM

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) View Post[/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:
if(!$name or !$email or !$address) {
Try changing to:
if(!$name || !$email || !$address) {
[/quote]

#4 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 10 April 2006 - 08:49 AM

Was it sending emails before and not now?
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#5 7pm

7pm
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 10 April 2006 - 08:50 AM

yeah oddly enuff, it worked fine at first...


[!--quoteo(post=363222:date=Apr 10 2006, 04:49 AM:name=Yesideez)--][div class=\'quotetop\']QUOTE(Yesideez @ Apr 10 2006, 04:49 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Was it sending emails before and not now?
[/quote]


#6 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 10 April 2006 - 08:53 AM

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.
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#7 7pm

7pm
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 10 April 2006 - 09:03 AM

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) View Post[/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]

#8 7pm

7pm
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 10 April 2006 - 05:23 PM

Well I asked, and PHP is infact running properly on the main server, so then I am still lost as to what is up here. PLEASE people...i still need help with this, anyone????




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users