tln6482 Posted July 22, 2010 Share Posted July 22, 2010 I have my php script setup to check if a file exists, if that is so, I called a JS function to pop up a confirm box to ask whether or not to overwrite the file. I've noticed that there is a distinct difference between the client-side JS and the server-side PHP and was wondering if there was any way around this? It'd be nice to give the user the option to overwrite/not overwrite if possible...... Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/208578-php-able-to-handle-values-returned-from-a-js-confirm-box/ Share on other sites More sharing options...
tln6482 Posted July 27, 2010 Author Share Posted July 27, 2010 Anyone have any idea for a solution? I'm having great difficulties trying to conquer this roadblock. Link to comment https://forums.phpfreaks.com/topic/208578-php-able-to-handle-values-returned-from-a-js-confirm-box/#findComment-1091839 Share on other sites More sharing options...
tln6482 Posted July 29, 2010 Author Share Posted July 29, 2010 I just did the condition check within the javascript and the function is now handling the values alright. Link to comment https://forums.phpfreaks.com/topic/208578-php-able-to-handle-values-returned-from-a-js-confirm-box/#findComment-1092573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.