Jump to content

input text box


ali_2kool2002

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.