: I want to have an info form on my site that will allow users to
: click a couple of radio buttons (no big deal). The problem is that
: I want it to go to a database. The other problem is that I don't
: understand how to make this form appear only once for each user
: (basically I don't know how to use cookies). I would also like the
: form once submitted to take the user to the home page.
OK, you need a server side script that displays the form depending on whether the cookie has been set, and another server side script that will take the submitted data, connect to a database, do a query to store it, and then print a location header that sends the user to the homepage. It's not all that hard and some basic tutorials on CGI programming will tell you how to do all apart from the database bit. And there is a very good article on the database bit in the CodePedia.
: Can anyone provide code that will do this?
I *can*, but I'd rather not. I'm happy to help if you try it yourself and get stuck with the code at some point.
: Or put me on the right track to finding it?
Look for CGI Programming tutorials, have a crack at the cookie bit first and the sending the user to the homepage. Save the database bit till later as it's likely to be the most difficult.
: If you can't tell, I am not inherently a programmer. I understand
: code when I look at it, but the logic escapes me for some reason.
Writing code for this kind of stuff isn't rocket science; the biggest risk you face is that of writing insecure code. Your best bet is to break the problem down into little bits that you can code, until you have the whole thing.
: Please I need a hand out or I am getting fired for sure.
In which case, me giving you code would only keep you out of problems until the next time you needed some code...
So, find some online tutorials, read them, practice with cookies and some basic CGI stuff, then start making it do what you want. Let me (and anyone else who's watching this) know how you get on.
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");