still have issues
Hi Ray,
Thanks for the pointers, however we havent dealt with the main issue which is in item c)
my script to take the input postcode and echo it onto the screen works but because the map is displaying on the input screen rather than after the submit button has been pressed it isnt picking up the postcode variable and the map doesn't display at all on the screen where the script does succesfully echo the postcode onto the screen which you would have seen if you had followed the above link, therefore my question again is;
In the code below where do we need to place the map code in order to have it display after the data entry and the submit button has been pressed and do we need to add extra elements to the script in order to get it to work?
<?php
$Pcode = $_POST["Pcode"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>map test</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
Post Code:<input type="text" size="12" maxlength="12" name="Pcode"><br />
<input type="submit" value="submit" name="submit">
</form>
<p>
<?
} else {
echo "Your postcode is ".$Pcode." .<br />";
{
echo $f."<br />";
}
echo "<i>".$quote."</i><br />";
}
?>