Hello everyone i want to go ahead and thank the people that do this for a living i myself im having to learn php my self i have a good base under standing .. i want to ask how can i pass my variables to a script say go.php from a form that just has three variables this is what i have it works on my server fine but its not working on the clients server. any suggestions
This is called when i submit the form with method=post
go.php
PHP Code:
<?php
if($sex == m & $age == 17 & $choose == macbook) {
header (Location:http://www.yahoo.com);
}
else if($sex == f & $age == 17 & $choose == macbook) {
header (Location:http://www.msn.com);
}
else if($sex == m & $age == 25 & $choose == macbook) {
header (Location:http://www.twitter.com);
}
else if($sex == f & $age == 25 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 40 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 40 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 41 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 41 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 17 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 17 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 25 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 25 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 40 & $choose == ipad) {
header (Location:http://www.yahoo.com);
}
else if($sex == f & $age == 25 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 40 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 40 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 41 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 41 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 17 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 17 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == m & $age == 25 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 25 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == m & $age == 40 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 40 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == m & $age == 41 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 41 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else echo(Eror the script did not work);
?>
Hello everyone i want to go ahead and thank the people that do this for a living i myself im having to learn php my self i have a good base under standing .. i want to ask how can i pass my variables to a script say go.php from a form that just has three variables this is what i have it works on my server fine but its not working on the clients server. any suggestions
This is called when i submit the form with method=post
go.php
PHP Code:
<?php
if($sex == m & $age == 17 & $choose == macbook) {
header (Location:http://www.yahoo.com);
}
else if($sex == f & $age == 17 & $choose == macbook) {
header (Location:http://www.msn.com);
}
else if($sex == m & $age == 25 & $choose == macbook) {
header (Location:http://www.twitter.com);
}
else if($sex == f & $age == 25 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 40 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 40 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 41 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 41 & $choose == macbook) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 17 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 17 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 25 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 25 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 40 & $choose == ipad) {
header (Location:http://www.yahoo.com);
}
else if($sex == f & $age == 25 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 40 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 40 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 41 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == f & $age == 41 & $choose == ipad) {
header (Location:http://www.facebook.com);
}
else if($sex == m & $age == 17 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 17 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == m & $age == 25 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 25 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == m & $age == 40 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 40 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == m & $age == 41 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else if($sex == f & $age == 41 & $choose == iphone) {
header (Location:http://www.apple.com);
}
else echo(Eror the script did not work);
?>
|
|
Search Webmaster Help and Solution
Having issue with code not working right. can some one help?Related ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
