ali_2kool2002 Posted February 18, 2007 Share Posted February 18, 2007 hi if i use something that uses an array like below <input type=text name=txtbox[]> to create several input boxes ,,, how do i check which 1 is pressed becuse when i use if (isset($_POST['submitted'])) { if ( ! empty ( $_POST[????????????] ) ) { where i have ??? what will i call the variable in the $_post to check if they are empty or not?? Link to comment https://forums.phpfreaks.com/topic/39050-input-text-box/ Share on other sites More sharing options...
desithugg Posted February 18, 2007 Share Posted February 18, 2007 hi if i use something that uses an array like below <input type=text name=txtbox[]> to create several input boxes ,,, how do i check which 1 is pressed becuse when i use if (isset($_POST['submitted'])) { if ( ! empty ( $_POST[????????????] ) ) { where i have ??? what will i call the variable in the $_post to check if they are empty or not?? you will call it $_POST['txtbox']; but you will have to make it into an array something like $text = $_POST['txtbox']; $text = implode(", ", $text); Link to comment https://forums.phpfreaks.com/topic/39050-input-text-box/#findComment-188085 Share on other sites More sharing options...
kucing Posted February 18, 2007 Share Posted February 18, 2007 you will call it $_POST['txtbox'] and also if ($_POST['txtbox']=="xyz"){ ////query } else{} Link to comment https://forums.phpfreaks.com/topic/39050-input-text-box/#findComment-188088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.