...

View Full Version : form data retrieval and display



doidom
04-26-2006, 11:05 PM
My client would like to be able to see and print form inquiries like the HTML/PHP form the visitor used. In other words have the existing form(s) populated with data the user submitted or have the user submissions saved or emailed as an HTML page that looks like the form with fields autopopulated with form data.

Any help, tutorials, scripts, would be tremedously appreciated.

chump2877
04-27-2006, 01:46 AM
Can you use a MySQL database for this project?

If you can, you can just create a new row in a table for each form submission's answers....

Then on an admin (password-protected) page somewhere, your client can populate an empty copy of the form with whichever row they choose from the database.....then I suppose they can just print the browser screen from there....

doidom
04-27-2006, 03:44 AM
I could create a db of the form fields but I'm trying to avoid that because the form is very lengthy. Any other solutions out there?

Is there a front end app anyone knows of to design XML doc? The reason I ask is the PHP form data is saved as XML data.

chump2877
04-27-2006, 04:28 AM
If all of the form data is saved in an XML document, then just parse the XML file in the same way that you would access a database, extract the data, and populate an empty copy of the HTML form like I was saying earlier.

Do you not know how to parse XML? You can use PHP to parse the XML, so it sounds like you just need to learn how to do that or find yourself a script that will do it for you.

See if you can find something in one of these places:
http://www.hotscripts.com/PHP/Scripts_and_Programs/XML_and_PHP/
http://www.google.com/custom?domains=www.phpclasses.org&q=xml+parse&sa=Search&sitesearch=www.phpclasses.org&client=pub-2951707118576741&forid=1&channel=5742870948&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23663399%3BGL%3A1%3BDIV%3A%23222222%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AA3C5CC%3BLBGC%3 AA3C5CC%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A50%3BLW%3A2 56%3BL%3Ahttp%3A%2F%2Ffiles.phpclasses.org%2Fgraphics%2Fgooglesearch.jpg%3BS%3Ahttp%3A%2F%2Fwww.phpc lasses.org%2Fsearch.html%3BFORID%3A1%3B&hl=en
http://sourceforge.net/search/?words=php+xml+parser&type_of_search=soft

doidom
04-27-2006, 04:10 PM
Thanks for the reply, I was hoping that there may be quicker way than learning XML parsing and coding. Code is not my forte. Whenever possible I look for front end apps that generate the code so I don't have to.

Any front end apps that would help me accomplish this?

chump2877
04-27-2006, 08:29 PM
Any front end apps that would help me accomplish this?

I personally dont know of any out-of-the-box solutions for your situation.

Also, FYI: I think you'll find that you won;t get much more help with this post if you don;t express an interest in doing any coding. This is a "coding" forum, remember? :p

doidom
04-27-2006, 08:42 PM
I appreciate your help and candidness, I do code, just not well. I'm better at using front end apps like CodeCharge and then modifying that code. And I'm new to xml so learning another language isn't something i've got a lot of time for.

thanks much, I may try the XML forum



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum