Hi to you all,
I'm trying to do one thing. & I did succed to pull out the data from the form & print it in the browser. But the file is not created in the directory. The problem is cause I'm 100% new to the php world (a Mickey Mouse PHP developer) so I really don't know how can you create files / delate files from a directory. Any ide where can I get that info?!!
Now I wonder if you have a form like this:
<head><title>Your Title</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFFF" text="#000000"><div align="center">
<form name="file_creator_form" method="post" action="../file_creator.php"><table width="75%" border="0" cellpadding="0" cellspacing="0"><tr><td width="20%"> Insert your Title</td><td width="80%"> <input type="text" name="your_title"></td></tr><tr><td width="20%"> Insert your Comment:</td><td width="80%"><input type="text" name="your_comment"></td></tr><tr><td width="20%"> Insert name of the file:</td>
<td width="80%"><input type="text" name="file_name"></td></tr><tr><td idth="20%"> </td>
<td width="80%"><input type="submit" name="Submit" value="Create a new file"><input type="reset" name="Submit2" value="Clear all fields"></td></tr></table><br>
<!--This was made with a php technology,... so you wanna learn more about it?!! Then visit http:// www.phpbuilder.com --></form></div></body>
& you would like to create a file that would look like this:
<head><title>Your Title</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFFF" text="#000000"><div align="center"> <table width="95%" border="0" cellpadding="0" cellspacing="0"><tr><td><div align="center">Your Comment Here!</div></td></tr></table></div><!--This was made with a php technology,... so you wanna learn more about it?!! Then visit http:// www.phpbuilder.com --></body>
Any idea how this can be done?!! Thanks.
-Kurt