RE: [PHP] Re: get the $email string
| From: | Brian T. Allen | Date: | Thu, 16 Jan 2003 18:20:55 +0000 |
| Subject: | RE: [PHP] Re: get the $email string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131912@lists.php.net to get a copy of this message | ||
Hi,
If you have a URL like:
http://www.whatever.com/page.php?email=joe@schmoe.com
Then in your script $email will already be set to "joe@schmoe.com".
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:rafael@nsinet.com.br]
> Sent: Thursday, January 16, 2003 12:03 PM
> To: php-general@lists.php.net
> 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=xxx@xxx.com
> >
> > 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 xxx@xxx.com?
> >
> > Miguel
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>