The problem is i am selecting a shipping type (being royal mail, dhl ect) however it is not showing up on the following page
auction site > select shipping type > auction view
I can use the drop down on the shipping type option (being shippingdetail.php) however i am not seeing the result on the advert page (detail.php)
I have attached some code below to see if any one can see what is wrong.
I have done alot of reading however it has not made much sense ( due to serious health problems and lack of sleep)
All help would be appreciated,
i would like the current code to work purely because it will save me all the coding to try and get it to work after if i was to change the type of form
This Is From the shipping page (shippingdetail.php)
Code: Select all
?>
<? if(!empty($err_serivce))
{
?>
<tr><td></td>
<td><a href="ship_detail.php#txtservice">Services</a> - <?= $err_service; ?></td></tr>
<?
}
...
<font size=2>Choose Postage Service</font></b>
<?
}
?>
<select name="chkservice">
<option value="">Select</option>
<?
$ser_sql="select * from postage_service";
$ser_res=mysql_query($ser_sql);
while($service_row=mysql_fetch_array($ser_res))
{
if($service_row['service_name']==$service)
{
?>
<option value="<?= $service_row['service_name'] ?>" selected><?= ucwords($service_row['service_name']) ?></option>
<?
}
else
{
?>
<option value="<?= $service_row['service_name'] ?>"><?= ucwords($service_row['service_name'])?></option>
<?
}
}
?>
</select></td></tr>
<tr>Code: Select all
<? if($row['post_service']=='royal-mail-1st-class') { ?><td><img src="images/royal-mail-1st-class.jpg" /></td>
<? } if($row['post_service']=='royal-mail-2nd-class') { ?><td><img src="images/royal-mail-2nd-class.jpg" /></td>
<? } if($row['post_service']=='DPD') { ?><td><img src="images/DPD.jpg" /></td>
<? } if($row['post_service']=='DHL') { ?><td><img src="images/DHL.jpg" /></td>
<? } if($row['post_service']=='Fedex') { ?><td><img src="images/fedex.jpg" /></td>
<? } if($row['post_service']=='parcel-force-24') { ?><td><img src="images/parcel-force-24.jpg" /></td>
<? } if($row['post_service']=='parcel-force-48') { ?><td><img src="images/case-collection.jpg" /></td>
<? } if($row['post_service']=='case-collection') { ?><td><img src="images/parcel-force-48.jpg" /></td>
<? } if($row['post_service']=='other-postages') { ?><td><img src="images/other-postages.jpg" /></td>
<? } if($row['post_service']=='pickup-only') { ?><td><img src="images/pickup-only.jpg" /></td><? }?>
<td> <? echo $row['post_service']; ?></td></tr>But why is it not saving the checked boxes selected on previous page, i beleived the database is correct but what is wrong?