It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Drop down menu box trouble

Drop down menu box trouble

Postby Ash on Sun Sep 04, 2005 1:42 pm

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: Select all
<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>
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby lalalogic on Sun Sep 04, 2005 4:30 pm

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? :)
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby Ash on Sun Sep 04, 2005 7:49 pm

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? :)


Yeah please I copied it from a PHP book I have that's why there was the php bit.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby lalalogic on Mon Sep 05, 2005 1:36 am

Code: Select all
<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' :P
Does it work now? :)
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby Ash on Mon Sep 05, 2005 7:57 am

Yeah it does thanks. One question tho the very top drop down box whats that for?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England


Who is online

Users browsing this forum: No registered users and 5 guests