Microsoft
Software
Hardware
Network
Question : PHP Using 2 Array's in strcmp() or pregmatch?
Hi Experts,
I have this set-up at this URL
http://www.thecarconnector
s.co.uk/va
luate/inde
x.php
- once the except terms button is pressed the page will activate. Select Mini from the drop down list and all will be revealed.
The background:
Under the heading "Vehicle Options" I return values from a database in order to display the checkboxes and their labels. This is done by iterating through a "do while" loop and assigning the id's from the database query to the checkbox values and the names respectively to the labels.
Once the form is complete, the user clicks through to a confirmation page but has the option of returning to modify the values in the form.
Here lies the problem:
I have tried to "re-check" the previously chosen boxes when the user returns but am having trouble working out the logic.
Fundamentally I've got 2 array's; one from the list of options and one from the users selection of options.
How do I manipulate/set-up the 2 arrays in order to "re-check" the previously chosen boxes?
Many thanks
Answer : PHP Using 2 Array's in strcmp() or pregmatch?
The answer is in_array()!
Random Solutions
Sorry, VMware GO doesn't currently support ESXi servers with multiple datastores.
Cannot start the reminder service - Outlook 2007
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Windows 2008 won't boot in new hardware
Just installed SQL Server 2005, but no instance appears
Workflow Foundation 4 (WF4) or SharePoint 2007 based on WF3?
Proliant ML110 G4 Lost RAID and Randomly gives Error 0251
Delete blank line from textarea
BootExecute in Startup - Windows XP
Shell script to queue commands