pixeltrace Posted February 21, 2007 Share Posted February 21, 2007 guys, i need help i have a form that when filled up it has to update the database and at the same time to create a new page for that. i dont have any idea how to do this. hope you guys can help me with this. thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/39447-dynamic-page-creator-from-form/ Share on other sites More sharing options...
skali Posted February 21, 2007 Share Posted February 21, 2007 $filename = 'test.txt'; $somecontent = "Add this to the file\n"; if (is_writable($filename)) { if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; } if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } fclose($handle); } Quote Link to comment https://forums.phpfreaks.com/topic/39447-dynamic-page-creator-from-form/#findComment-190340 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.