title: Live preview inside iFrame and saving style.css every 30 seconds
body: <p>I am making a website where you type in CSS and there is a preview (preview.php) - which is shown inside an iFrame - which has set text. I would like preview.php to update live to when you type CSS into the css file (relative to preview.php: <code>designname/css/style.css</code>), and to save the edited CSS file every 30 seconds.</p>
  
  <h3>EDIT</h3>
  
  <p>How should I edit the text in the <code>style</code> tag instead of a file, and uploading the text that you type into an actual file (<code>title_of_design/css/style.css</code>), and uploading any images (when you enter in that you need them in an Image Field) to the directory <code>title_of_design/image.php?i=image+name</code> or <code>title_of_design/images/image_name.png</code>?</p>