dotkpay Posted October 17, 2011 Share Posted October 17, 2011 Hello, A named field in an html form e.g. <input type="text" name="time"> is accessed as $_GET['time'] or $_POST['time'] by the processing script. What about an unnamed field like the one below: <input type="text" value="" id="1" /> How do I harvest this field's input as a variable from my php processing script? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/249265-access-to-unnamed-form-fields/ Share on other sites More sharing options...
ManiacDan Posted October 17, 2011 Share Posted October 17, 2011 Usually you can't. The "name" attribute is required for an input box inside a form. print_r($_POST); and see if it comes up. -Dan Link to comment https://forums.phpfreaks.com/topic/249265-access-to-unnamed-form-fields/#findComment-1279978 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.