Header location with joomla

821 views
Skip to first unread message

rahhal mahassen

unread,
Jan 11, 2011, 6:09:38 AM1/11/11
to joomla-de...@googlegroups.com
Hello,
I want to redirect the user to external link.so that i tried to use the "header location" to recupere(save) the email adress .
$UserInfo =& JFactory::getUser();
$email=$UserInfo->email;
My url for redirection is: http://www.site.com/lp001/form/form.php?element_1="'.$email.'"&element_2=66".
The email variable must be replaced with the value of the user's email.

Can any one help me how to do this using header location?

Dimitris

unread,
Jan 11, 2011, 6:45:35 AM1/11/11
to Joomla! General Development
URL Encoding is your friend

Dimitris

unread,
Jan 11, 2011, 6:47:54 AM1/11/11
to Joomla! General Development
Oh and about redirection

http://lmgtfy.com/?q=php+header+redirect

Just remember that you have to add the header before any text is
printed on the page.

rahhal mahassen

unread,
Jan 11, 2011, 6:59:06 AM1/11/11
to joomla-de...@googlegroups.com
Can you please explain more.that exactly what i need:the same sheme like your link 

2011/1/11 Dimitris <dimk...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.


Dimitris

unread,
Jan 11, 2011, 7:02:18 AM1/11/11
to Joomla! General Development
<?php header("Location: http://www.example.com/"); /* Redirect browser
*/ ?>

rahhal mahassen

unread,
Jan 11, 2011, 10:58:23 AM1/11/11
to joomla-de...@googlegroups.com
How do you do to redirect the visitor after clic into "recherche google"?
I want to know the code/script php used to do this action.

2011/1/11 Dimitris <dimk...@gmail.com>
<?php header("Location: http://www.example.com/"); /* Redirect browser
*/ ?>

--
Reply all
Reply to author
Forward
0 new messages