clbrownAlpine Posted June 1, 2009 Share Posted June 1, 2009 Hi there all - I wonder if you can help me? This is a huge puzzle for me....I have a form located at https://www.alpinemalta.net/onlineForms/SheffieldW/SWform.html I have a validator on there that wont let you submit the form unless you enter the info required. All is running fine and the info is been emailed to me but strangley enough there has been a few instances that I've received emails with blank info.... how is this possible? I've tested this page on IE | Firefox & also Safari.... Any help appreciated - by the way - I am new to PHP Best regards Christopher Link to comment https://forums.phpfreaks.com/topic/160447-blank-info-coming-through/ Share on other sites More sharing options...
anupamsaha Posted June 1, 2009 Share Posted June 1, 2009 Surely. How did you validate the form? Using only JavaScript? Ok, then whatever browser you are using, please turn off javascript support from it and try to submit the form. If you don't have the backend validation (validation through PHP script), or checking for disabled JavaScript (<noscript> tag), the form will be submitted as blank. Hope, I am making things clear to you. Link to comment https://forums.phpfreaks.com/topic/160447-blank-info-coming-through/#findComment-846711 Share on other sites More sharing options...
clbrownAlpine Posted June 1, 2009 Author Share Posted June 1, 2009 Ahhh - I see - so excuse my ignorance but how do i turn off the javascript to test? Also - do you know any tutorials where I can find out how o validate using php instead of javascript... Thanks Link to comment https://forums.phpfreaks.com/topic/160447-blank-info-coming-through/#findComment-846714 Share on other sites More sharing options...
anupamsaha Posted June 1, 2009 Share Posted June 1, 2009 Ahhh - I see - so excuse my ignorance but how do i turn off the javascript to test? Also - do you know any tutorials where I can find out how o validate using php instead of javascript... Thanks I bet, this article will help you a lot. http://www.php-mysql-tutorial.com/wikis/php-tutorial/form-validation-using-php.aspx Turning off JavaScript from browser from FireFox. Goto Tools -> Options. Select "Content" tab and uncheck "Enable JavaScript" and save the option. Link to comment https://forums.phpfreaks.com/topic/160447-blank-info-coming-through/#findComment-846717 Share on other sites More sharing options...
clbrownAlpine Posted June 1, 2009 Author Share Posted June 1, 2009 Hey - thanks so much for your help....I was just worried that some people were filling out the form but we were getting blank info....I tested it with the Javascrpt turned off and it came through as before. I will have a look at the tutorial and try to implement it - thanks again!!! Link to comment https://forums.phpfreaks.com/topic/160447-blank-info-coming-through/#findComment-846721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.