Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Required Form Fields


pcknights

Recommended Posts

Posted
I have make a form using os commerce tools.

Can Someone tell me please how to make them required?

 

looking in the working example:

 

 if (strlen($YOUR_FIELD_NAME) < ENTRY_YOUR_FIELD_NAME_MIN_LENGTH) {
  $error = true;

  $messageStack->add('create_account', ENTRY_YOUR_FIELD_NAME_ERROR);
}

 

don't forget to configure table the data to define the length of your field.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Archived

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

×
×
  • Create New...