I have a question regarding a "Home Made" CMS for just a couple sections of the HTML on a site.
I have managed to obtain the HTML by calling it with "Include"
I have a Fuel Pump and I have published the fuel price on my site...
I have to change the price every day... so I want a small "admin portal" where I can type the fuel price and with it submit the changes to the site...
here is the sample code I have been playing with so far...
<link href="test.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
This section has the area you can modify:<br>
Change Fisrt line with: <input type="text" name="gasPrice1"><br>
Change Second line with: <input type="text" name="gasPrice2"><br>
<input type="submit" value="Change!">
$var1 = $_GET["gasPrice1"];
$var2 = $_GET["gasPrice2"];
echo $var1 . " This is the echo from the first Variable";
echo $var2 . " This is the echo from the second Variable";
var gPrice1 = "<?php echo $var1; ?>";
var gPrice2 = "<?php echo $var2; ?>";
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users