todayme Posted March 5, 2007 Share Posted March 5, 2007 Can you do this in PHP????? Note on this line the word Leads is the name of the form and State is Dropdown Box document.Leads.State.value I just want to be able to identify a dropdown box within a form so I can get the contents of the selection. Surely you can do this in PHP???? I just call a functin from the drop down box upon change. <SCRIPT LANGUAGE="javascript"> function captureselection() { var locatestate = window.location var locateindustry = window.location document.Leads.State.value = locatestate document.Leads.Industry.value = locateindustry var cool_state = document.Leads.State.value var cool_industry = document.Leads.Industry.value } </SCRIPT> Link to comment https://forums.phpfreaks.com/topic/41220-please-help/ Share on other sites More sharing options...
papaface Posted March 5, 2007 Share Posted March 5, 2007 That is Javascript not PHP. PHP = server side. Link to comment https://forums.phpfreaks.com/topic/41220-please-help/#findComment-199682 Share on other sites More sharing options...
todayme Posted March 5, 2007 Author Share Posted March 5, 2007 Then how do you pass info from java script to php? Link to comment https://forums.phpfreaks.com/topic/41220-please-help/#findComment-199687 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.