I am doing this zipcode thing for class and this is what is going on:
I have a dropdown box with both cities and zipcodes put in
each of these cities or zipcodes have a number assigned to them
then it goes to the php which says roughly
[ <?php
elseif ($location == 1){
$Mlink = 'http://www.mapquest.com/maps/map.adp?se ... it=Get+Map'
}
?>]
this is a really small snippet of it, now I am trying to get it to go back to the html and open the Mlink automatically in a new window.
Thanks in advance
Dino
trying to auto href to a new page
Moderator: General Moderators
I may be wrong
I was searching like you said, is it a downloadable file or a piece of code automatically in php? The reason I ask is I am not allowed to put in any software on the server or pc's, the school is pretty strict. Its just my searches came up with it being a downloadable piece of software.
I wonder
could this work? I know I am being a pain, its just mandatory that it is done iin php.
Code: Select all
elseif ($location == 1){
header ('Location: http://www.mapquest.com/maps/map.adp?searchtype=address&formtype=search&countryid=250&addtohistory=&country=US&address=2935+S+Orlando+Dr&city=Sanford&state=FL&zipcode=32773-5340&historyid=&submit=Get+Map') ;
exit();thanks man
I will tell ya man, you are a godsend,
dino
dino