I didn't create our online ordering system, but now I need to make a
slight change to one of the forms but I'm not sure how to code it.
Here's the present code for a list of radio buttons. By default the
first one is automatically selected. I would like to make it so that
none of the buttons are selected.
<?php
if (isset($shipping_options['pickup']))
echo $form->radio('Request.delivery',array('pickup'=>'<strong>Pickup</
strong> at Document Services
(14-0551)'),array('legend'=>false,'class'=>'nosave','value'=>'pickup','id'=>'RequestDelivery2','unchecked'=>true));
?
></p>
<hr align="left" noshade="noshade" size="1" width="175" />
<p><strong>Express Shipping:</strong></p>
<p>
<?php
if (isset($shipping_options['FedEx Express Saver']))
echo $form->radio('Request.delivery',array('FedEx Express
Saver'=>'FedEx Express
Saver'),array('legend'=>false,'class'=>'nosave','value'=>'pickup','id'=>'RequestDelivery3'));
?
><br />
<span style="margin-left:25px">(add $<?= $rates['shipping']['FedEx
Express Saver'] ?> or provide account number)</span>
</p>
<p><?php
if (isset($shipping_options['FedEx 2Day']))
echo $form->radio('Request.delivery',array('FedEx 2Day'=>'FedEx
2Day'),array('legend'=>false,'class'=>'nosave','value'=>'pickup','id'=>'RequestDelivery4'));
?
><br />
<span style="margin-left:25px">(add $<?= $rates['shipping']['FedEx
2Day'] ?> or provide account number)</span>
</p>
<p><?php
if (isset($shipping_options['FedEx Priority']))
echo $form->radio('Request.delivery',array('FedEx Priority'=>'FedEx
Priority'),array('legend'=>false,'class'=>'nosave','value'=>'pickup','id'=>'RequestDelivery5'));
?
><br />
<span style="margin-left:25px">(add $<?= $rates['shipping']['FedEx
Priority'] ?> or provide account number)</span>
</p>
<p>
<input id="MetaShipChargeAccount" type="checkbox" value="1"
name="data[Meta][ship_charge_account]"/>
<label for="MetaShipChargeAccount">Bill express shipping charges</
label>
<?php
echo $form-
>input('Account.ship.type',array('type'=>'hidden','value'=>'shipping'));
echo $form->input('Account.ship.number',array('label'=>'to your FedEx
account:','div'=>array('style'=>'margin-left:25px')));
?>
Any assistance would be greatly appreciated!
Jenn
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php