Hi All,
I have a form (form.php)
Now the user can reach this form via 3 ways by clicking the links(link1=UK, link2=Spain, link3=Portugal),
When the user enter the form.php, the $_GET grabs the country code from the url, and this is displayed on the page, Saying "Contact Us -UK/Spain/etc"
the code i have used is just a simple if statement
if($GET['country'] == 'UK') {
$location = 'UK';
}
when required i just echo $location, in the script and this works
The problem I have is the form validates itsself,
(so the form sends the POST info to itself) if the form passes or fails there is no longer a $_GET variable in the URL,
so in the mail function i have wrote $location does NOT output as theres nothing in the URL
I really hope you understand what I am trying to say, I have been working on this form all over the weekend and just hit a big wall,()BANG
Maybe I should not use the GET function, could someone show me a better way?
thanks for reading
lozza