Hi, If you have a URL like: http://www.whatever.com/page.php?[EMAIL PROTECTED]
Then in your script $email will already be set to "[EMAIL PROTECTED]". This depends on register_globals being on, if I remember correctly, and you'll want to be aware of the order for variable assignment (for POST, GET, cookie, and session variables). Thanks, Brian Allen > -----Original Message----- > From: Rafael Rodrigo - NSI [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 16, 2003 12:03 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: get the $email string > > > I don't know how do you get this answer, but try this: > <a href="email=$email"><? echo $row->name; > ?></a></font></b></td> > > Rafael Rodrigo > > > Hi, > > > > i made a page to display some user details and then > clicking on the user > > name it goes to another page to send a mail via mail() function. > > > > here is the line of the first page > > <td width="20%" align="center"><b><font face="Arial" size="1" > > color="#808080"><a href="mail_active.php?email=$email"><? > echo $row->name; > > ?></a></font></b></td> > > > > when click on user name, it goes to the > mail_active.php?[EMAIL PROTECTED] > > > > on the mail_active.php page, how do I get the e-mail > address to send? > > I mean, the mail function is mail > ("$to","$subject","$message","From: > > $sender"); > > How can I take the $to string to be [EMAIL PROTECTED]? > > > > Miguel > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php