Tumpdueddergo
New Member
I have a script:\[code\]<?php if(isset($_GET['id'])) { ob_start(); ?> <html> some html here </html> $get_contents=ob_get_contents(); <? } <? if(isset($_GET['idd'])) { echo($get_contents); }\[/code\]I have a webpage that lets the user fill out information, and selct things from the database. when they are done with everything they click a button, sending all form data including ob_get_contents(); down to $_GET['idd'] which will then create a file and have all the data saved into it.I know it works if i drop the \[code\]if(isset($_GET['idd']))\[/code\]I have to save the page AFTER they enter in all the data.. Any suggestions?P.S. I tried putting $get_contents into a hidden \[code\]<input/>\[/code\] and using AJAX to then pass the variable to the next function but all ob_start would do is copy the headers into the new file and nothing else.