Welcome Guest, Not a member yet? Register   Sign In
If no value is entered...
#1

[eluser]Drayen[/eluser]
I've tried using "isset" and "empty" and neither seem to work. I just want to load a separate page if no value is entered. Thanks for any help.

Code:
if (!empty($_POST['queryphrase'])){$this->load->view('searchresults');}
    else{
    whatever...
    }
#2

[eluser]Tom Schlick[/eluser]
if($this->input->post('queryphrase') != '')
{
do the good stuff
}
else
{
do the bad stuff
}
#3

[eluser]Drayen[/eluser]
[quote author="trs21219" date="1232710750"]if($this->input->post('queryphrase') != '')
{
do the good stuff
}
else
{
do the bad stuff
}[/quote]

tyvm




Theme © iAndrew 2016 - Forum software by © MyBB