• 0

combo box image problem i need help !


Question

i want a help pls

index file

<meta name="description" content="E-car Pooling System" />

<meta name="keywords" content="ecar, , car pooling" />

<meta name="author" content=E-Car" />

<script type="text/javascript"> '; ?>

<!--

function showimage() {

if (!document.images)

return

document.getElementById('mypicture').src=document.cartype.picture.value;

}

//-->

<?php echo '</script>

<title> E-car Pooling : </title>

</head>

and the file im calling the java script

if($_SESSION["type_reg"] == "Driver")

{

echo '<b><label>Please select your type of car:</label></b>

<table border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="100%"><form name="cartype"></td></tr><p>

<select name="picture" size="1" onChange="showimage()">

<option selected value="registration/images/picture1.gif">Roadster/Van</option>

<option value="registration/images/picture2.gif">Saloon</option>

<option value="registration/images/picture3.gif">Mini Van</option>

</select>

</td>

</tr>

</p>

</form>

</td>

</tr>

<tr>

<td width="100%"><p align="center"><img src="registration/images/picture1.gif" id="mypicture" width="70%" height="70%"></td>

</tr>

</table>';

where is the problem? pls help me

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.