Hi, i am new in php.. I have already a site(.html) that the user choose some items from radio buttons checkboxes and drop down lists..and i save them in a database. I want automatically to create a html file according to the options the user puts..could you please tell how can i do that?how to beggin...
Take a look at frwite() to create your files from the data you've saved via the forms. You'll have to specify the html, and then write it to the file using that function.
but remember to not save all direct inputs to your file, some things can damage your webhosting. htmlspecialchars can overcome most!
psim, What is it that you want to do: create a static html file and save it on the disk, or response with a dynamic html according to the user's input?
^^^ It'd be unnecessary, mod_rewrite wouldn't be needed. Security? - Strip all php from it (although not important unless your .html's are included or executed as php) - Strip all images which aren't on your server - Strip all frames/iframes, etc - Strip all javascript - Strip anything else fishy, leaving on the html which has been sanitized
you really dont want to use php to generate html files... instead - point your form at a php file and let the php script output your html for you