Jump to content

cant work cjeck out


spooke2k

Recommended Posts

if (isset($_SESSION['Test']))

{

if($_POST['textfield']  == "Search Criteria")

{

}else{

$_SESSION['Test'] = $_POST['textfield'];

}

}else{

$_SESSION['Test'] =$_SESSION['Test'];

}

 

what im trying to do is check if the txtfield has changed value if it has and isnt "search criteria" then change the variable session to the post textfield,  if the $_POST['textfield'] == "Search Criteria" then hold that last session variable which is not "Search Criteria" if you see what i mean so that it remebers the last value in the session which is not "Search Criteria" until something else is entered that is not "Search Criteria"

 

so even after 10 php_selfs it still holds that good value

 

Thanks in advance

 

Spooke2k

Link to comment
https://forums.phpfreaks.com/topic/55489-cant-work-cjeck-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.