Guest Posted April 6, 2004 Posted April 6, 2004 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.
Guest Posted April 6, 2004 Posted April 6, 2004 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!
Guest Posted April 7, 2004 Posted April 7, 2004 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! <_<
Guest Posted April 7, 2004 Posted April 7, 2004 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.
quaker Posted April 7, 2004 Posted April 7, 2004 Warning: open(/tmp\sess_f6c2a9f22c880480e5deba400835fdb0, O_RDWR) failed: No such file or directory (2) in c:\phpdev\www\catalog\admin\includes\functions\sessions.php on line 67 what is this.... err im new so pppppplllllezzz help out. [email protected]
Guest Posted April 7, 2004 Posted April 7, 2004 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.