Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Success message not printing after registration. Please help
Old 03-24-2005, 01:28 PM Success message not printing after registration. Please help
ibot's Avatar
Novice Talker

Posts: 5
Trades: 0
Hi,

I have a registration form that is supposed to print out a message after a successfull registration. Now the form goes through successfully as it should but my success message does not print out....
Here is my code:

<?
if ($str || $success) {
if ($success) $str = "<font color=\"#ff0000\">Your registration completed successfully!<br>Be sure to log in to see if you've won on April 5th!</font>";
?>

Any help would be soooo greatly appreciated! Thanks! - ibot
ibot is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-24-2005, 01:29 PM
compmodder26's Avatar
Experienced Talker

Posts: 44
Trades: 0
I don't see anything in that code that is printing $str (e.g. echo, print, printf, etc.)
__________________
Buy Cool Univeristy of Kentucky Merchandise at

Please login or register to view this content. Registration is FREE
compmodder26 is offline
Reply With Quote
View Public Profile Visit compmodder26's homepage!
 
Old 03-24-2005, 01:31 PM
ibot's Avatar
Novice Talker

Posts: 5
Trades: 0
Right, but when I use echo, print... I get an error
ibot is offline
Reply With Quote
View Public Profile
 
Old 03-24-2005, 01:32 PM
compmodder26's Avatar
Experienced Talker

Posts: 44
Trades: 0
what's the error?
__________________
Buy Cool Univeristy of Kentucky Merchandise at

Please login or register to view this content. Registration is FREE
compmodder26 is offline
Reply With Quote
View Public Profile Visit compmodder26's homepage!
 
Old 03-24-2005, 01:43 PM
ibot's Avatar
Novice Talker

Posts: 5
Trades: 0
Hmmm - not getting an error anymore - though message is still not printing. I now have:

if ($str || $success) {
if ($success) echo "<font color=\"#ff0000\">Your registration completed successfully!<br>Be sure to log in to see if you've won on April 5th!</font>";
ibot is offline
Reply With Quote
View Public Profile
 
Old 03-24-2005, 01:49 PM
Rufo's Avatar
Extreme Talker

Posts: 173
Trades: 0
How are $str and $success defined? The problem could lie there.
__________________

Please login or register to view this content. Registration is FREE
Rufo is offline
Reply With Quote
View Public Profile Visit Rufo's homepage!
 
Reply     « Reply to Success message not printing after registration. Please help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22112 seconds with 12 queries