Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what am i missing


Guest

Recommended Posts

Hi all,

 

I'm trying to create a required field in the create_account.php file. The field itself isn't a problem, but I can't seem to get the javascript box to appear when a user misses out that field, instead all the errors come up with a pink highlight (including the new required field error message).

 

This only happens if i try to perform the form check in form_check.js.php. If I take out the check from this file the normal javascript error message pops up, but doesn't mention anything about the new required field error.

Link to comment
Share on other sites

Come on peeps. I've searched for ages, but all I've found out how to do is make a field not required, which is not quite (but almost) the opposite of what I'm trying to do. The other suggestions of using the DB won't work as the string is held in a session variable.

 

Can someone just post how you make one of the fields that isn't put into the DB a required field, with the pop-up javascript box when there is an error. PLEASE. I've spent 3 days on this so far, and have even got a web devloper at work stumped with this one!

Link to comment
Share on other sites

Ok, I've almost got it.

 

I've now got the javascript error to come up, I just need to check my If statement error check as it appears to go to true as soon as anything is entered in the text box.

 

I'd love to share, but I don't see anyone here! <_<

Link to comment
Share on other sites

turn on sql logging in admin panel and then you can trace what is going on, which should point you at which code needs changing. why not put the field into a database, would make it much simpler.

Link to comment
Share on other sites

Thanks for the reply Mibble,

 

I tried doing as you said in the admin panel, but I didn't find it. I found a parse log instead though, but when I enable it, the page fills up with errors trying to find the parse log??

 

I don't suppose you can tell me which option the sql logging is found in.

 

I'd rather not use the DB as the required field is for a human verification code. I'm trying to modify one of the original contributions, but your probably right it probably would be a lot easier.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...