Results 1 to 4 of 4

How to create HTML Page Dynamically in 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 ...

  1. #1
    Senior Member Array
    Join Date
    Dec 2010
    Posts
    355

    Default How to create HTML Page Dynamically 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

  2. #2
    Banned Array
    Join Date
    Mar 2011
    Posts
    138

    Default Re: How to create HTML Page Dynamically in php

    A great SP Ebook written by SPF members. Get your free copy now!

    http://www.php.net/manual/en/functio...t-contents.php

  3. #3
    Junior Member Array
    Join Date
    Jul 2011
    Posts
    21

    Default Re: How to create HTML Page Dynamically in 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.

  4. #4
    Senior Member Array
    Join Date
    Jul 2011
    Posts
    134

    Default Re: How to create HTML Page Dynamically in php

    Thank for giving me information....



Similar Threads

  1. Embed one html page inside another html page
    By Timmytell in forum Web Design
    Replies: 0
    Last Post: 06-13-2011, 12:04 PM
  2. How To create good on page seo
    By osho2 in forum Search Engine Optimization
    Replies: 13
    Last Post: 05-10-2010, 09:15 AM
  3. Replies: 7
    Last Post: 01-17-2009, 03:57 AM
  4. Replies: 0
    Last Post: 02-07-2008, 06:16 PM
  5. Replies: 4
    Last Post: 01-11-2008, 10:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO Forum | Web Hosting Forum | Websites For Sale |