ted_chou12 Posted February 3, 2007 Share Posted February 3, 2007 var text=""; text = prompt('Text',''); This is a small javascript prompt box that shows up for some input values, however, how can you get the input value to a variable of php? Thanks Ted Link to comment https://forums.phpfreaks.com/topic/36914-get-javascript-value-into-php/ Share on other sites More sharing options...
hvle Posted February 3, 2007 Share Posted February 3, 2007 You can do an "Ajax" action and post this variable to a specified PHP script Link to comment https://forums.phpfreaks.com/topic/36914-get-javascript-value-into-php/#findComment-176101 Share on other sites More sharing options...
ted_chou12 Posted February 3, 2007 Author Share Posted February 3, 2007 how do you do that (I am very unexperienced) Link to comment https://forums.phpfreaks.com/topic/36914-get-javascript-value-into-php/#findComment-176103 Share on other sites More sharing options...
hvle Posted February 3, 2007 Share Posted February 3, 2007 You have to know Ajax, it's just simple java script and xml programming. The idea is using javascript to establish a connection and post/Get information to the server. You gotta look at Ajax forum for this. Link to comment https://forums.phpfreaks.com/topic/36914-get-javascript-value-into-php/#findComment-176107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.