2
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by AleMonteiro
0

href="mailto:no-reply@mydomain.com" specify to use the mailto protocol with the no-replay@mydomain.com as a parameter.

To do what you want you need to create a javascript function that will make an ajax request to change the session variable and return the content you want.

Hope it helps.

How to do it with Jquery/Ajax method? Is there an example?

0

There's lots of examples at http://docs.jquery.com.
But it's quite simple, something like this:

function doMyThing(strEmail)
{
	$.post( // JQuery post method
		"MyPage.php",  // First parameter is the url
		{ email: strEmail },  // Second is the request data
		function(result) // Third is the function to handle the response
		{
			alert("AJAX Response: " + result);
		}
	);
}
0

Thank you. How to store into session? strEmail is LIVE variable (not server)
$_SESSION["var"] = $strEmail;

Is this possible?

0

I don't know much of PHP, so I don't know what a LIVE variable is.

But as far as I know, with session, you can do it like this:

$strEmail = $_REQUEST["email"];
$_SESSION["var"] = $strEmail;
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.