View Single Post
  #1 (permalink)  
Old 03-14-09, 06:54 AM
jimmyjim jimmyjim is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
help: write new php file to server using a form.

Hey all,

I am trying to make a form that makes a php file and saves it to my server.
eg: 1.php

The form would have a few fields say "variable1" and "variable 2" and "save as" with a submit button.

The save as would be a text imput field where i can type in the name i want the file to be saved as eg: 1.php and the 2 other text fields would put the entered info into the php page eg: somethinggoeshere or somethingelsegoeshere

Below is how 1.php would look after the form has done its job.

PHP Code:

<?php

$variable1 
'somethinggoeshere';
$variable2 'somethingelsegoeshere';
?>
I have no idea how to do this at all and am wondering if someone could help me out with it.
If you need any more info please let me know.

Any help would be much appreciated.

Thanks
Reply With Quote