...

View Full Version : POST variable inside of a string



SDP2006
10-07-2003, 09:06 PM
This is not correct, so what is the right way?


echo ("<a href=\"mailto: . $_POST['email'] . \">");


Thanks

missing-score
10-07-2003, 09:14 PM
echo '<a href="mailto:'.$_POST['email'].'">';

would be the best way

SDP2006
10-07-2003, 10:15 PM
Err, that didn't work
Heres what I wanna do
<a href="mailto: $row['Email']">echo ("$row['Name']");</a>

Which would output the persons name with a mailto link to their email account. Thanks

missing-score
10-07-2003, 10:19 PM
ok. i just did that becuase u used $_POST above

how bout:




echo '<a href="mailto: '.$row['Email'].'">'.$row['Name'].'</a>';

SDP2006
10-07-2003, 10:29 PM
Yeah, sorry about that. Thank matt :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum