zero-perfoliate
zero-perfoliate

Author Topic: CSS HTML formatting using fwrite  (Read 211 times)

Offline chetandhiman

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
CSS HTML formatting using fwrite
« on: May 08, 2010, 09:29:26 AM »
Hello! I am a newbie and a noob for php. I am trying to do some experiments with php and html. I have made a form that has 4 fields 1. Name of the file (ex. abc.html) 2. Heading 3. Subheading and 4. Content I am storing this data to mysql using a php file named store.php then I recall last saved data using another file named create.php this file creates a file with the name supplied in "Name of the file" field and writes Heading, Subheading and content data stored in mysql using fwrite.
What I am trying to do is format this newly generated file with css and html. I want to display heading in <div class="heading"> Heading field data</div>, content data in <div class="content"> Data entered in content filed</div> and so on
I am not getting any clue how to achieve it?
Kindly help me I have read many manuals but found nothing.