web2000 Posted May 16, 2006 Share Posted May 16, 2006 Hi,On an editable form, when the user clicks on the submit button i want it to validate a label on another form and display the error on the form that has just been submitted.I am using Codecharge studio 3.1Is this possible? I have got the following code but am having no luckIf anyone knows of any alternative code please helpThank you very much [code]global $shoppingcart; global $NewRecord1; if (CCStrLen($NewRecord1->total->GetText()) && $NewRecord1->total->GetValue() < 250) { $shoppingcart->Errors->addError("Im sorry, but it has to be more than 250"); };[/code] Quote Link to comment https://forums.phpfreaks.com/topic/9790-validate-a-label-on-another-form/ Share on other sites More sharing options...
trq Posted May 16, 2006 Share Posted May 16, 2006 Sorry... your going to need to be more specific, supply more detail. You might also need to explain some of what this code actually does. Your using non standard object, how are we meant to know what they do? Quote Link to comment https://forums.phpfreaks.com/topic/9790-validate-a-label-on-another-form/#findComment-36290 Share on other sites More sharing options...
web2000 Posted May 17, 2006 Author Share Posted May 17, 2006 [!--quoteo(post=374334:date=May 16 2006, 11:41 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 16 2006, 11:41 AM) [snapback]374334[/snapback][/div][div class=\'quotemain\'][!--quotec--]Sorry... your going to need to be more specific, supply more detail. You might also need to explain some of what this code actually does. Your using non standard object, how are we meant to know what they do?[/quote]Hi,I am trying to validate a label on a form, so that if the number is less than £250 it will give an error and wont continue submitting the form.Its validation Quote Link to comment https://forums.phpfreaks.com/topic/9790-validate-a-label-on-another-form/#findComment-36560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.