Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Drop down menu box trouble



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1017
Location: England

PostPosted: Sun Sep 04, 2005 2:42 pm    Post subject: Drop down menu box trouble Reply with quote

I wrote this and tried it but it don't work does anyone see any mistakes? if so Can you tell me them so I can Correct it.
Code:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>

<body>
<b>Sites worth a visit</b><br>
<form action="<?php $self ?>" method="post">
<select name="location">
<option value="#">Please vists these sites</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.justnutty.com/index.php?langid=1">Just Nutty email</option>
<option value="http://www.dafont.com/en/theme.php?cat=904">Dafont</option>
<option value="http://ghettotwist2.forumsplace.com2">Ghetto twist forums</option>
<option value="http://www.thepixplace.com">The Pix Place</option>
<option value="http://imageshack.us/">Imageshack</option>
<option value="http://www.devppl.com/forum/">Devppl forum</option>
</select>
<input type="submit" name="submit" value="go">
</form>
</body>

</html>
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Sun Sep 04, 2005 5:30 pm    Post subject: Re: Drop down menu box trouble Reply with quote

Your form is ok. The php part confuses me.. I'm used to making this kind of menus with javascript. I don't know if another way works.. Do you want the code with js? Smile
Back to top
View user's profile Send private message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1017
Location: England

PostPosted: Sun Sep 04, 2005 8:49 pm    Post subject: Re: Drop down menu box trouble Reply with quote

lalalogic wrote:
Your form is ok. The php part confuses me.. I'm used to making this kind of menus with javascript. I don't know if another way works.. Do you want the code with js? Smile


Yeah please I copied it from a PHP book I have that's why there was the php bit.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lalalogic
100+ Club


Joined: 16 Aug 2005
Posts: 200

PostPosted: Mon Sep 05, 2005 2:36 am    Post subject: Re: Drop down menu box trouble Reply with quote

Code:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>

<body>
<b>Sites worth a visit</b><br>
<form name="links" method="post">
<select name="jump">
<option value="#" selected>Please visit these sites</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.justnutty.com/index.php?langid=1">Just Nutty email</option>
<option value="http://www.dafont.com/en/theme.php?cat=904">Dafont</option>
<option value="http://ghettotwist2.forumsplace.com">Ghetto twist forums</option>
<option value="http://www.thepixplace.com">The Pix Place</option>
<option value="http://imageshack.us/">Imageshack</option>
<option value="http://www.devppl.com/forum/">Devppl forum</option>
</select>
<input type="button" name="submit" onClick= "location = '' + document.links.jump.options[ document.links.jump.selectedIndex ].value;" value="go">
</form>
</body>

</html>


btw I erased the '2' from 'http://ghettotwist2.forumsplace.com2' and wrote 'visit' instead of 'Please vists these sites' Razz
Does it work now? Smile
Back to top
View user's profile Send private message
Ash
1000+ Club


Joined: 03 Aug 2005
Posts: 1017
Location: England

PostPosted: Mon Sep 05, 2005 8:57 am    Post subject: Re: Drop down menu box trouble Reply with quote

Yeah it does thanks. One question tho the very top drop down box whats that for?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap