Updating XML from select boxes and visa versa using PHP

tennishottie124

New Member
Thank you in advance for the help. I have a series of select boxes in a file like such:\[code\]<table><tr> <td>Lane 1:</td> <td> <select name="lane1Status"> <option value="http://stackoverflow.com/questions/11161043/closed">Closed</option> <option value="http://stackoverflow.com/questions/11161043/cue">Cue</option> <option value="http://stackoverflow.com/questions/11161043/registration">Registration</option> <option value="http://stackoverflow.com/questions/11161043/finAid" selected>Financial Aid & Scholarships</option> <option value="http://stackoverflow.com/questions/11161043/admisssions">Admissions</option> </select> </td></tr>\[/code\]There are 8 separate "lanes" (this is for student line queing). When a user changes the selection in any of those boxes and hits submit, it needs to update that "lane" in an xml file which looks like this:\[code\]<?xml version='1.0'?><update><Lane1Status>registration</Lane1Status><Lane2Status>registration</Lane2Status><Lane3Status>registration</Lane2Status><Lane4Status>registration</Lane2Status><Lane5Status>registration</Lane2Status><Lane6Status>registration</Lane2Status><Lane7Status>registration</Lane2Status><Lane8Status>registration</Lane2Status></update>\[/code\]When that value is set, it needs to in turn be the default selection for that particular lane when the user pulls up the page. So if Lane1Status is updated to "closed", whenever a user opens up the form, that lane needs to be set to closed by default. Thank you in advance for your help.
 
Back
Top