0

Hey guys,

I have a script calling the value from a hidden field from the previous page and then writing it to the page. What code would I have to use to say:

IF hidden field value from the previous page is empty then the hidden field value should be changed to "blah"

Current script:

<?php echo $_REQUEST['Siteprice'] ; ?>

Thanks

Max

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by MDGM
0

***quick correction:

IF hidden field value from the previous page is empty then the script should write "blah"

0
if(empty($_REQUEST['hiddenfieldname'])) {
echo "Blah";
} else {
echo $_REQUEST['hiddenfieldname'];
}

Like this ?

This question has already been answered. 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.