Jump to content

[SOLVED] Help


tecmeister

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/156096-solved-help/
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.