Yea quite complicated eh? :(
I have a form (let's say it's called index.html) which goes to main.php, from there it takes the info put into index.html (the person's email for example) and then creates a new page with the info.
The problem I'm having is how to make it actually make a new page with PHP inside. Basically, I need it to be able to write variables inside the file, but it keeps trying to locate the variable inside the script used to make it in the first place.. Help please <3
EDIT:
an example of what's happening; I use this in main.php to specify what I want inside the file:
Then that would show inside the newly created file with blanks where the variable $example would be D:
Solved! fillerfillerfillerfillerfillerfiller
I have a form (let's say it's called index.html) which goes to main.php, from there it takes the info put into index.html (the person's email for example) and then creates a new page with the info.
The problem I'm having is how to make it actually make a new page with PHP inside. Basically, I need it to be able to write variables inside the file, but it keeps trying to locate the variable inside the script used to make it in the first place.. Help please <3
EDIT:
an example of what's happening; I use this in main.php to specify what I want inside the file:
Code
$content = "<?php \n $example = "example"; \n ?>";Then that would show inside the newly created file with blanks where the variable $example would be D:
Solved! fillerfillerfillerfillerfillerfiller


