I am currently working through some tutorials on PHP, and am stuck. I am creating a from that allows users to input information, and then I want to use this information to "create " an HTML page. I have made a form with the variables so the user can enter the information and it is here I get stuck.
What is the code to capture these variables so I can use them , and open a new page with the result
this is my form…
[code]<?PHP
// This is a form that asks the user to input some items to be used in generating a //web page.
?>
Your Heading: | |
---|---|
Type your BackGround Colour | |
Type Your Font Colour | |
Enter the text for your Web Page |
|
This appears to work OK.
newPage.php is the page into which I would like to use the variables.
My efforts with this so far are…
<style type = "text/css">
body{
background: $bgColour;
color: $fontColour;
}
</style>
<?PHP
global $heading;
print "$heading";
?>
<center>
<?PHP
global $bodyText;
Print "$bodyText";
?>
</center>
One must understand that this isn’t near finished. My problem is that I can’t seem to get the variables from the form to appear in the newPage.php. Any Ideas so I can finish this exercise???
Help much Appreciated,
ghostrider1965