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

***quick correction:

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

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

Like this ?

Thanks nav33n =] works nicely

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.