| 
 Posted by J.O. Aho on 02/04/06 22:05 
UKuser wrote: 
> Having looked at the error - if I assign a value to $price it will do a 
> correct SQL query, however it appears to not submit the input box, thus 
> parsing the $price value. 
>  
 
if(!isset($_POST['price']) || empty($_POST['price'])) { 
    /* There hasn't been a ?price=XX sent to the page    */ 
    /* or it was completely empty when sent to this page */ 
    $price=0; 
} else { 
    /* We set the variable $price to the value sent from */ 
    /* the previous form page                            */ 
    $price=$_POST['price']; 
}
 
[Back to original message] 
 |