I've decided to use a drop down box with 3 options (Ok, NCR & Disq) then I can put the value of the one selected into an array. It looks good and works okay.
Many thanks for your replies.
I've added some count code -
$x = count($disqArray);
echo "X equals: " . $x;
and checked 3 of the boxes. The count is 0 it should be 20. If checkboxes only return a result if they are checked it should still be giving a count of 3. If I count the $plNumber array I get 20 which is correct...
I have a page where I enter updates to multiple records (up to a hundred) on the same page. The entries are put into an array which is passed by post to a processing page which uses PHP. This works okay for text box entries. However, I want to put a checkbox for each entry so I can pass a flag...
I understand it is possible to use more than one submit button in a form, with different 'Name' or 'Value' attributes, in order to perform different functions on the next page visited. I have looked this up on the web but found conflicting ways of doing it. None of which seem to work. Basically...
I bring back the address from the database and assign it to a variable before I echo the variable in the value attribute.
$street = $row['Street']; This is from the database which is "125 Smith Street"
echo "Street = " . $street. "\n"; //I did this to see what was coming back from the database...
I want to bring back records from a database into an HTML form and populate all the text boxes with values from the database. This is so I can alter the text then update it. This works perfectly ok where a text box is filled with a single word e.g. a surname. If however. I try to fill the value...
I am a relative newbie, I have some programming experience in PHP and Mysql but haven't done much for a few years. I am writing a program that requires the user to input data. I have written the following "INSERT" queries and cannot understand why I get the results that I do.
1) This works in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.