tecmeister Posted April 29, 2009 Share Posted April 29, 2009 Hi everyone, I'm trying to get the info from the URL one by one. This is the script that I have used to send the info to the URL. $name = $_POST['name']; $del = $_POST['del']; $Per = $_POST['Per']; $ser = $_POST['ser']; $cus = $_POST['cus']; $rec = $_POST['rec']; $reviw = $_POST['reviw']; $error = array(); if(empty($name)) { $error[] = "name"; } if(empty($del)) { $error[] = "delivery"; } if(empty($per)) { $error[] = "performance"; } if(empty($ser)) { $error[] = "services"; } if(empty($cus)) { $error[] = "customers"; } if(empty($rec)) { $error[] = "recommend"; } if(empty($review)) { $error[] = "review"; } if (count($error) > 0) { header("Location: add_feedback.php?error=" . implode("+", $error)); } [\CODE] When it goes back to the add_feedback.php, how do I ask it about all the data that is on there? I understand some of it. [code] $error = $_GET['error']; I know how to search it if there is just one thing on there. This is the example that I'm using for alot of things. http://www.cxgsystems.co.uk/test/add_feedback.php?error=name+delivery+performance+services+customers+recommend+review How would I know that performance is on there so I can check it. Quote Link to comment https://forums.phpfreaks.com/topic/156096-solved-help/ Share on other sites More sharing options...
ignace Posted April 29, 2009 Share Posted April 29, 2009 <?php $error = $_GET['error']; $errors = explode('+', $error); if (in_array('performance', $errors)) { ..performance is in_array.. } else { ..performance not in array.. } ?> Quote Link to comment https://forums.phpfreaks.com/topic/156096-solved-help/#findComment-821713 Share on other sites More sharing options...
tecmeister Posted April 29, 2009 Author Share Posted April 29, 2009 Hi, I typed what you said ans it is coming up 'performance not in array'. I echo $error and it came up. name delivery performance services customers recommend review Quote Link to comment https://forums.phpfreaks.com/topic/156096-solved-help/#findComment-821727 Share on other sites More sharing options...
tecmeister Posted April 29, 2009 Author Share Posted April 29, 2009 It is ok now I figured it out. Just change the '+' to ' ' Thanks for you help, tecmeister Quote Link to comment https://forums.phpfreaks.com/topic/156096-solved-help/#findComment-821730 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.