I don't know if I will make much sense in what i am saying but. I have seen that some scripts that I have previously download use a config.php file for mysql connection information. That being said let me explain what I am trying to do or perhaps thought up. I want to make a simple contact form using php and use a config.php file so that say I have a email change I can simply edit the config.php file.
So it would include such files as
form.php
mailer.php
config.php
My question is, Is this possible and how would I go about coding the config file? I hope this makes sense and thanks for any help anyone provides.
/edit/
This is all that I have so far in terms of coding.
<?php
include ('config.php');
?>
<form action="mailer.php" method="post">
<table width="50%" border="0" cellspacing="1" class="tablestyle" cellpadding="1" align="center">
<tr><td>Name:</td>
<td><input type="text" name="name" size="50">
</td>
</tr>
<tr>
<td>Email: </td>
<td>
<input type="text" name="email" size="50">
</td>
</tr>
<tr>
<td>Site Url: </td>
<td>
<input type="text" name="siteurl" size="50">
</td>
</tr>
<tr>
<td>Site Name: </td>
<td>
<input type="text" name="sitename" size="50">
</td>
</tr>
<td>Comments: </td>
<td>
<textarea name="comments" cols=51 rows="7"></textarea>
</td>
</tr>
<tr><td colspan="2"><center><input type="submit" value="Submit"> <input type="reset" value="Try again"></center></td></tr>
</table></form>