Okay, I'm all fixed now! Much of the following repeats this thread, but I wanted to keep this in context. Again, I'm a newbie here, so if anyone see's what I could have done better, please let me know. Thanks Van for your help!
STEP ONE ------------------------------------
I setup the ini file as detailed below.
[USER_GLOBALS]
g_url = http://www.yoursite.com
g_name = George W Bush
g_email = you@yoursite.com
g_company = Wheelright Auto
g_address = 1082 17th Ave
g_city = Redwood City
g_state = CA
g_zip = 94030
g_country = US
g_phone1 = (800) 555-1212
g_phone2 = (650) 666-6666
g_fax = (650) 999-6696
STEP TWO ------------------------------------
I then used your suggestion for calling the variables of the ini. It's verbatim and is used on each page that needs the user variables.
<?
$ini = parse_ini_file('/path/to/inifile');
foreach($ini as $setting=>$value) { ${$setting}=$value; }
//now just call them as regular ol vars...
echo $g_city;
?>
This is what I did for step three on my 2nd form that actually saves the data to the ini-file.
<?
//Define my variables for the file parse
$ini=$HTTP_POST_VARS;
//Add this to the first line of my file
$ini_string = "[USER_GLOBALS]\n";
//Cycle through each key, attach quotes
foreach ($ini as $key => $value) {
//we need to strip off the last variable set by the user clicking submit
if ($key<>submit){
$ini_string .= $key ."=". "\"".$value . "\""."\n";
}
}
//write the thing!
$fp = fopen('/path/to/inifile','w');
fwrite($fp,$ini_string);
fclose($fp);
//and we are done.
?>