Scope72 Posted August 19, 2011 Share Posted August 19, 2011 Need help please. Does anyone see a problem with calling the onchange event in here. I have tried this and can't get it to work at all. function dothis(){ <?php print '<input type="text" size="5" onchange="nowdothis()" value="TextBox">'; ?> function nowdothis() { $fp = fopen('error.txt','w'); fwrite($fp,"This"); fclose($fp); } Thank you for any help. Quote Link to comment https://forums.phpfreaks.com/topic/245166-textbox-onchange-event-using-print/ Share on other sites More sharing options...
MasterACE14 Posted August 19, 2011 Share Posted August 19, 2011 You can't call PHP like that. Google 'AJAX' Quote Link to comment https://forums.phpfreaks.com/topic/245166-textbox-onchange-event-using-print/#findComment-1259253 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.