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
HELP please! Can't get email address to print in my code
Old 06-05-2010, 06:24 PM HELP please! Can't get email address to print in my code
Experienced Talker

Posts: 33
Trades: 0
Hey guys, I've got a pretty simple code and for some reason the email will not print and i cannot figure out for the life of me why.

here's the code:


<?php
$name = $_GET['name'];
$email = $_GET['email'];

print "thank you, $name. we will contact you at $email";
?>

the freaking $name shows up just fine but the $email comes up blank. The variable vaues come from the following link:

<a href=\"thanks.php?name=$name&email=$email\">

why is the email not showing up? I am entering one in the form

Thanks in advance for any help!
Frank Drebin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-05-2010, 06:40 PM Re: HELP please! Can't get email address to print in my code
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No idea. Is it appearing in the URI?

do we get something to actually debug?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-05-2010, 06:53 PM Re: HELP please! Can't get email address to print in my code
ThailandForum's Avatar
King Spam Talker

Posts: 1,415
Name: Sir Richard Cranium
Location: Bangkok Thailand
Trades: 0
check the email value on both the form and where it is sent from.
__________________

ThailandForum is offline
Reply With Quote
View Public Profile Visit ThailandForum's homepage!
 
Old 06-05-2010, 07:43 PM Re: HELP please! Can't get email address to print in my code
Marik's Avatar
Skilled Talker

Posts: 99
Trades: 0
Like previously asked, is the email showing in your actual url or is it empty after the "email=" ?

If there is no value after the email parameter then the problem isn't with this script but with the script that generated the initial hyperlink.
__________________

Please login or register to view this content. Registration is FREE
Marik is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HELP please! Can't get email address to print in my code
 

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.13372 seconds with 12 queries