UrlGuy
05-04-2005, 06:16 PM
Hi,
I have this PHP script which I want to allow my users to change its configuration settings.
The config.php file could look something like this
<?PHP
$colour = "blue";
$food = "pizza";
?>
What I want to do is, I want to make a HTML or PHP form, where I can allow my users to edit the value of my different variables.
The variables and their values are already assigned, so I would need to edit the current ones.
Lets say I wanted to edit the above variable $colour's value from blue to red, without changing the variable or its name itself, only its value.
Like.. search and replace or something like that.
Background info:
I want to make a form for the users, kinda like where they access their "account page", and can edit their own account settings. Such as recieve emails, enable/disable settings and such. The variables are already set so I need only to change their value, without knowing what their value is in advance.
Anyone who can help me get started?
Thanks. :-)
I have this PHP script which I want to allow my users to change its configuration settings.
The config.php file could look something like this
<?PHP
$colour = "blue";
$food = "pizza";
?>
What I want to do is, I want to make a HTML or PHP form, where I can allow my users to edit the value of my different variables.
The variables and their values are already assigned, so I would need to edit the current ones.
Lets say I wanted to edit the above variable $colour's value from blue to red, without changing the variable or its name itself, only its value.
Like.. search and replace or something like that.
Background info:
I want to make a form for the users, kinda like where they access their "account page", and can edit their own account settings. Such as recieve emails, enable/disable settings and such. The variables are already set so I need only to change their value, without knowing what their value is in advance.
Anyone who can help me get started?
Thanks. :-)
