brown2005 Posted November 15, 2006 Share Posted November 15, 2006 hi i have the following form;<select name='item' value='array[item_id]'><option>array[item_name]</option></select><input name='value'></input>and a tableitem_iditem_nameitem_pointwhat i want to do is once a person selects the item to automatically get the price from the table and enter it in the inputany ideas please Link to comment https://forums.phpfreaks.com/topic/27320-automatically-update-a-field/ Share on other sites More sharing options...
joshi_v Posted November 15, 2006 Share Posted November 15, 2006 I think you require a javascript for this.when you select an option from the select menu, update the input field value by using the JavasCript.Regards,Joshi Link to comment https://forums.phpfreaks.com/topic/27320-automatically-update-a-field/#findComment-124900 Share on other sites More sharing options...
brown2005 Posted November 15, 2006 Author Share Posted November 15, 2006 well i thought that it would be javascript but i also need php in it to select from the table and was wondering if anyone could show me how to do it please. Link to comment https://forums.phpfreaks.com/topic/27320-automatically-update-a-field/#findComment-124913 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.