A great SP Ebook written by SPF members. Get your free copy now!
http://www.php.net/manual/en/functio...t-contents.php
This is a discussion on How to create HTML Page Dynamically in php within the Programming forums, part of the Web Designing & Development category; Hi all I need small help with respect to html and PHP I am creating an article directory in php ...
Hi all
I need small help with respect to html and PHP
I am creating an article directory in php where people can submit their articles.
I want to generate a dynamic page in html.i.e when user submit article and from admin panel i approve the article,a html page should be created dynamically with that article title.
The page should be permanent.i.e i want to crate the page on the fly and want to write the page with the article
No data should come from database when the page is created
thanks
A great SP Ebook written by SPF members. Get your free copy now!
http://www.php.net/manual/en/functio...t-contents.php
By combining some ajax on your client side with your php on the server side you can accomplish whatever you want. You can also persist your question data either in the server side or client side.
If you wish to persist on the server side set up a second db table to maintain your temporary question answers. Then when the user completes the questionnaire move those temporary answers to the final answers table.The pro's of saving on server side is that the user can leave the questionnaire and come back to finish it later.
If you wish to use the client side do not use form submits, but instead use a javascript framework for Ajax and just refresh the area of the page that has the questions. You maintain the question answers in a data structure (JSON object would be very well suited for this) on the client. Since the entire page does not refresh the data structure will persist. Then on the final answer you pass the JSON object back to the php server for final saving.
Thank for giving me information....
Bookmarks