conte Posted June 29, 2006 Posted June 29, 2006 hi there, i am looking for this since hours, but could not find anything in the forums. Can anybody help with that, please? I want the textfields empty that produce an error on the form check of e.g. create account, edit account,... In the moment, the customer will get an error message, that something is wrong, but the text will still be in the field that produced the error and make it more difficult for the customer to identify the field that triggered the error. How can i clear these fields after the form check? thanks a lot
conte Posted June 30, 2006 Author Posted June 30, 2006 Anybody? Please help on this. it must be annoying to others too.
conte Posted July 3, 2006 Author Posted July 3, 2006 Hello?? Is there really nobody who can help on this? I can not find any answer to that in the forums - some guru must know how to do this. Please!
Guest Posted July 3, 2006 Posted July 3, 2006 use the unset php function when the form is processed so for example lets say the first name has an incorrect number of characters. if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; unset($firstname); $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR); }
conte Posted July 18, 2006 Author Posted July 18, 2006 use the unset php function when the form is processed so for example lets say the first name has an incorrect number of characters. if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; unset($firstname); $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR); } thanks for the help - unfortunatly that did not help. no error, but also no different behavior.
♥Monika in Germany Posted July 18, 2006 Posted July 18, 2006 thanks for the help - unfortunatly that did not help. no error, but also no different behavior. I gather you do not even get that far, but use the js form validation? That is the spot where the fileds need to be clearend then. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.