1) Security error ? Errr... I think we'll need more details (Versions, Web Server,Intallation procedure, full text of error messages, etc.) in order to troubleshoot that one. You ARE accessing the file through HTTP and not file system, right ?
2) Sounds more like an HTML problem then a PHP problem... are you sure you're formatting your radio buttons correctly ? Basically, for any one question you'll need to have several radio buttons with the same NAME but different VALUES. ie :
For a hypothetical question1
<input type="radio" name="question1" value="1"> Foo
<input type="radio" name="question1" value="2"> Bar
And for question 2
<input type="radio" name="question2" value="3"> Bilbo
<input type="radio" name="question2" value="4"> Frodo
et cetera ad nauseam.
3) No. What you will need is a "pretty smart" answer script that will recognize which question is being answered, look up the correct answer (and reason, whatnot), then display the results. That leads us to...
4) It's probably a good idea. You could, technically speaking, hardcode the answer into your program, or store the desired results in a text file or somesuch... but that way lies madness. With a database... well, you have another type of madness, but at least you can store your data coherently, change it at will, and learn something in the process. And you'll be able to do a generic "answer engine".
Basically I heartily recommend spending some time with an HTML and PHP tutorial and docs - it will probably take some time for you to grok it all, but in the end it'll be worth it... and avoid a whole heap of "RTFM" answers to future questions along these lines (it's monday morning and I'm still half asleep - my vitriol level is not up to spec yet).
HTH, HAND
WageMage
Programmer at Arms, SomeHushHushStartup.
pingywon MCSE wrote:
Hello all first and foremost let me just thank anyone who responds to this
post..this group appears rather helpful (Im new here) Im also new to php
(Big surprise ? )
anyway heres the scoop:
Im beginning work on a "testing engine" type thing...heh
pretty much the form will open up ask you a question with 3 to 5 radio
buttons, you'll choose your answer then hit the submit..and it will return
your answer weither it was correct or not and why ...... here is where the
questions begin.....I'll just list em out
1) Cant get the PHP visible on the net (under win Server 2003) added a
service extension "php" and pointed it to my c:\php\php.exe all I get it a
security error. any ideas there ?
2) When making the radio buttons and testing them it doesn't stop me from
picking more then one button (in other words it will let me pick all 5 and
have them all selected at the same time ) how do I stop this ?
3) Im assuming I will need to have an "answer" type php file so that the
page can return the results......will I have to have a different file for
EACH QUESTION!??!? as each question will be different ..
......This is beginning to look alot harder then I first imagined it would
4) if im not tracking any of the user info....do I need a SQL db ???
ANY HELP IS MUCH APPRECIATED !!!!!
--- [This E-mail scanned for viruses by Declude Virus]
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php