trying to auto href to a new page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dino3
Forum Newbie
Posts: 9
Joined: Mon Jan 17, 2005 12:22 am
Location: winterpark Fl

trying to auto href to a new page

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you could use a jumpbox instead, as that's basically what you are doing anyways.

search for that here and/or google.
dino3
Forum Newbie
Posts: 9
Joined: Mon Jan 17, 2005 12:22 am
Location: winterpark Fl

I may be wrong

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
dino3
Forum Newbie
Posts: 9
Joined: Mon Jan 17, 2005 12:22 am
Location: winterpark Fl

I wonder

Post 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();
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yep.
dino3
Forum Newbie
Posts: 9
Joined: Mon Jan 17, 2005 12:22 am
Location: winterpark Fl

thanks man

Post by dino3 »

I will tell ya man, you are a godsend,

dino
Serengeti
Forum Newbie
Posts: 19
Joined: Sat Jan 22, 2005 1:58 am

Post by Serengeti »

dino...you attend full sail?
Post Reply