how to pass values to other pages..not gettin it :(
Posted: Sun Jan 22, 2006 8:54 am
hawleyjr | Please use
Here, "curcategory" is the query string variable name passed from the prev page.
Kindly let me know whow to send this $cat thru mail using MAIL()function. I am sure i am making a big
mistake sumwhere, please guide.
hawleyjr | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
hello!
I an a newbie in php. i am transfering value from one of my page to another(Mailign page) thru query
string and the values gets dislayed in an input control.
Then the user enters other required values on this mailing page and then clicks submit which sends a
mail. I am not able to get the query string value being passed in my mail, only this query string
value goes blank in the mail though it is displayed properly in the input box when i come into this
page.
i tried various options say:Code: Select all
if(isset($_GET['curcategory'])) //if 1
{
$cat = @$_GET['curcategory'];
}Code: Select all
<input name="selcategory" type="text" disabled class="box" id="selcategory" size="32" value="<?php
echo $cat; ?>">
i also tried these below given opions to get the value and then send it thru MAIL function:
//$current = $_GET['selcategory'];
//$current = $_REQUEST['selcategory'];
//$current = $HTTP_GET_VARS['selcategory'];
//$current = $_SESSION['selcategory'];mistake sumwhere, please guide.
hawleyjr | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]