dvduval wrote:Have I found a village of idiots here? Or are there a couple of all-knowing seers?
Well, I hope us Moderators and Admins fall under the all-knowing
Anyways, I recommend you write your own script. A form is nice and simple and easy way of getting your feet wet so to speak. First of all start off writing a form in HTML, set the action of the page to basename($_SERVER['PHP_SELF']) so your form line should read:
- Code: Select all
<form action='<?=basename($_SERVER['PHP_SELF'])?>'>
Note the <? ?> tags to start and stop PHP anywhere within standard HTML, such is ease of use. Anyway, don't forget to set the method to GET or POST
Then, at the top of your page you can insert the following code:
- Code: Select all
<?
if (sizeof($_POST)) {
print "<pre>\n";
print_r($_POST);
print "</pre>\n";
}
That will display your form results in an Array. You can change $_POST to $_GET depending on your form action. Look up Super Global Arrays in the manual for more info.
Now you've got your form results as an Array, I suggest you learn to manipulate Arrays. Again all the info can be found in the manual, but since it's not very beginner friendly (in my experience) I recommend using your book which will probably explain it better!
Now you've learned how to manipulate an Array, learn MySQL and set up a database to store this info. You'll need to learn how to connect to the Db, create a table, and insert the data. Then you'll need to learn how to retrieve it. You can use the
mysql_fetch_array() feature to return the results as an Array, which by now you will know how to control. Then it's a simple case of displaying it how you want.
I think that's enough to get you started. If you get any problems you know where to come
