| View previous topic :: View next topic |
| Author |
Message |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1017 Location: England
|
Posted: Sun Sep 04, 2005 2:42 pm Post subject: Drop down menu box trouble |
|
|
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 |
|
 |
|
|
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Sun Sep 04, 2005 5:30 pm Post subject: Re: Drop down menu box trouble |
|
|
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?  |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1017 Location: England
|
Posted: Sun Sep 04, 2005 8:49 pm Post subject: Re: Drop down menu box trouble |
|
|
| 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. |
|
| Back to top |
|
 |
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Mon Sep 05, 2005 2:36 am Post subject: Re: Drop down menu box trouble |
|
|
| 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'
Does it work now?  |
|
| Back to top |
|
 |
Ash 1000+ Club

Joined: 03 Aug 2005 Posts: 1017 Location: England
|
Posted: Mon Sep 05, 2005 8:57 am Post subject: Re: Drop down menu box trouble |
|
|
| Yeah it does thanks. One question tho the very top drop down box whats that for? |
|
| Back to top |
|
 |
|