How can I read my config file:
$City="Dallas";
$State="Texas";
split the values, add $, remove the " ".
So I can use the $varvalues to place them in a form as such:
<?php
$entirefile = file ( "config.inc" );
while ( list ( $line_num, $line ) = each ( $entirefile ) )
{
list ( $varname, $varvalue ) = split ( "=", $line );
echo "$varname = $varvalue<BR>";
}
echo "<FORM method=post>";
echo "<INPUT TYPE=text name=City value=$City size=25><BR>";
echo "<INPUT TYPE=text name=State value=$State size=25><BR>";
echo "<INPUT TYPE=submit name=submit value=send><BR>";
echo "</form>";
?>