Hello
im new to osCmax and im not used to javascript at all but i think im on a good way
i dont need address data of my customers because im only selling virtuell goods, so i am trying to use the street address field for their profile link
that wasnt the hard part
now im trying to add a validation to form_check.js.php to make sure its the right profile link
the function gets called like this:Code:function check_fb(field_name, message) { var field_value = form.elements[field_name].value; var fb_link = field_value.indexOf('profile.php'); if (fb_link==-1) { error_message = error_message + "* " + message + "n"; $error = true; } }
but i am getting no result or error.Code:check_fb("street_address", <?php echo NO_FB_LINK; ?>);
i would be glad if any expierienced user could have a look at it and tell me how to do it right
thanks in advance





LinkBack URL
About LinkBacks












Bookmarks