Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

contact_us with radio inputs?


Guest

Recommended Posts

Posted

how could i make a multiple choice with radio inputs for the contact_us page?

 

like:

 

Sex:

[ ] Male [ ] Female

Posted

get it from the create_account.php file there is this code:

 

				<td class="main"><?php echo tep_draw_radio_field('gender', 'm') . '  ' . MALE . '  ' . tep_draw_radio_field('gender', 'f') . '  ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td>

 

move it over to the contact us page. Then when you generate the email include the result with the rest of the content like the create account script does.

Posted

thanks a lot for your help I was in need of a radio box field it took me 30 minutes to get it working but it works thanks again

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...