Page 1 of 1

trying to auto href to a new page

Posted: Sat Jan 22, 2005 2:16 am
by dino3
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

Posted: Sat Jan 22, 2005 2:19 am
by feyd
you could use a jumpbox instead, as that's basically what you are doing anyways.

search for that here and/or google.

I may be wrong

Posted: Sat Jan 22, 2005 2:29 am
by dino3
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.

Posted: Sat Jan 22, 2005 2:35 am
by feyd
a jumpbox is HTML & Javascript code that opens a document based on a selection.

If you look at this page, you'll see "Jump to:" in the lower right corner area.. that's a jumpbox.

I wonder

Posted: Sat Jan 22, 2005 3:07 am
by dino3
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();

Posted: Sat Jan 22, 2005 3:09 am
by feyd
yep.

thanks man

Posted: Sat Jan 22, 2005 3:11 am
by dino3
I will tell ya man, you are a godsend,

dino

Posted: Sat Jan 22, 2005 3:17 am
by Serengeti
dino...you attend full sail?