752Part IVConnectionsListing 40-11(continued) Mouse Trackball Touchpad TrackPoint Pen Stylus Listing 40-12 shows a script that will allow you to edit the XML file in Listing 40-10 using DOM XML. Listing 40-12:XML editor (dom_polledit.php)
load($pollfile)) { echo Cannot read XML file. ; exit; } // Once a poll is created, the user will only be able to // change the StartDate, EndDate, Question, and response values. // Format the data$pollname = $_POST[ poll_name ]; $startdate = $_POST[ Poll_Startdate ]; $enddate = $_POST[ Poll_Enddate ]; $question = $_POST[ Poll_Question ]; // Replace the values as text nodes$poll_list = $doc->getElementsByTagname( Poll ); foreach ($poll_list as $poll_obj) {
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to
servlet web hosting services.
This entry was posted
on Tuesday, December 18th, 2007 at 3:19 pm and is filed under Domain.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.