how to pass textbox value in query string

//how can get to pass the user inputted text box value to the other page

<? echo""; echo"add"; ?>

first, encase it in php tags, very few servers support asp style tags anymore (its off by default in the php config)

2nd - use a submit button and a hidden input for the item id

echo "


The php to capture it would be something like
[php]if(isset($_POST[‘add’])) {
$itemid = $_POST[‘productid’];
$quantity = $_POST[‘quant’];
}[/php]But that’s assuming you’re using a form tag.

Sponsor our Newsletter | Privacy Policy | Terms of Service