How to fetch unconsistant values from URL
Posted: Sat Nov 28, 2009 11:58 pm
Hi,
I have an email application in my site. When the users click on compose mail. I show them a ajax enabled form, they select the email id (To:) and continue by clicking on a "Email now" link. "Email now" generates an url of the form
Here, the "message" is actually a MD5 of the (To:) email id. In the index.php page at http://www.domain.com/index.php I have this code
Now the issue is the $message value keep changing, does any one know how to make sure that what ever be here
it should always fetch
Thank you very much
I have an email application in my site. When the users click on compose mail. I show them a ajax enabled form, they select the email id (To:) and continue by clicking on a "Email now" link. "Email now" generates an url of the form
Code: Select all
http://www.domain.com/?ulr=MailBox.compose&message=b273424cb7570c86b1bc8f0a53544c53
Code: Select all
$url = $_REQUEST['url'];
$message = $_REQUEST['message'];
if ($ulr == 'Home'){
require ("webpages/html/home.php");
}else if ($url == 'AboutUs'){
require ("webpages/html/contactus.php");
}else if ( ($url == 'MailBox') && ( $message == ''){
require ("mail/compose/compose_new.php");
}else{
require ("webpages/html/home.php");
}
Code: Select all
http://www.domain.com/?ulr=MailBox.compose&message=b273424cb7570c86b1bc8f0a53544c53
Code: Select all
require ("mail/compose/compose_new.php");