Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alter Jump Code

Status
Not open for further replies.

NigeB

Technical User
Nov 29, 2000
53
GB
I have the following code to populate a drop down box and some javascript to perform the jump, both seem to work fine, except I get a server error saying I do not have permissions to emter the directory (permissions are set to 777).


*********************************************************

$result = mysql_query("SELECT schedules.team_date, document_name
FROM schedules
Order BY schedules.data_updated",$db);

?>
<select name=&quot;team_date&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot;>
<?
while ($row = mysql_fetch_array($result)) {

echo &quot;<option value=&quot;.$row[&quot;document_name&quot;].&quot; >&quot; .$row[&quot;team_date&quot;].&quot;\n&quot;;
}
?>
</select>

**********************************************************

When the drop down box has been populated the source code looks like -

<option value=sanctioned/6thMay2002.pdf>Test - 21st Whenever 2002</option>

Where as to get the jump to work it needs to look like -

<option value=&quot;sanctioned/6thMay2002.pdf&quot;>Test - 21st Whenever 2002</option>

How do I alter the code to get the Speech marks &quot;&quot; in?

Any help would be greatly appreciated.

Nigel.
 
inside strings you need to protect quotes with \. So when you want to display a quote just put \&quot;. But another thing. That's not your problem, unless you have files, or dirs with spaces in the names.

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Hugo,

Thanks for the tip, I found out I had missed the </option> from the code.

Many Thanks

Regards

Nigel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top