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. 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' 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
Archived
This topic is now archived and is closed to further replies.