F1Fan Posted October 24, 2008 Share Posted October 24, 2008 echo "<tr><td colspan = '16'<input type = 'submit' onclick='return validate(\"$count\")' ></td></tr>"; This will make PHP generate the HTML to pass $count into your JS function. Quote Link to comment https://forums.phpfreaks.com/topic/129968-solved-javascript-validation/page/2/#findComment-673935 Share on other sites More sharing options...
F1Fan Posted October 24, 2008 Share Posted October 24, 2008 Also, you didn't add the id tag to each input yet. Quote Link to comment https://forums.phpfreaks.com/topic/129968-solved-javascript-validation/page/2/#findComment-673937 Share on other sites More sharing options...
mbrown Posted October 24, 2008 Author Share Posted October 24, 2008 i did it on one to test it and that is how i knew it didnt work Quote Link to comment https://forums.phpfreaks.com/topic/129968-solved-javascript-validation/page/2/#findComment-673940 Share on other sites More sharing options...
F1Fan Posted October 24, 2008 Share Posted October 24, 2008 OK, you're saying that one piece of code didn't work, but then you posted different code. Post the code that you're referring to. Your JS code is using id tags, but your PHP isn't. Quote Link to comment https://forums.phpfreaks.com/topic/129968-solved-javascript-validation/page/2/#findComment-673989 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.