Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 131,791 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,623 people online right now. Registration is fast and FREE... Join Now!




TEST SCRIPT

 
Reply to this topicStart new topic

TEST SCRIPT, create php test script

Arsench
post 9 Oct, 2008 - 01:10 PM
Post #1


New D.I.C Head

*
Joined: 8 Oct, 2008
Posts: 4

HELLO, I HOME THAT HERE SOMEONE CAN BE A MAGICIAN AND WILL HELP ME PLEASE.
IM A NEW IN PHP WORLD AND NEED YOU HELP PLEASE.

I HAVE A DB WITH NAME examen IM CONNECTING TO THIS DB AND THERE ARE A 6 FIELDS

FIELD 1 IS QUESTION
FIELD 2 IS POSSIBLE ANSWER1
FIELD 3 IS POSSIBLE ANSWER2
FIELD 4 IS POSSIBLE ANSWER3
FIELD 5 IS POSSIBLE ANSWER4

FIELD 6 IS A CORRECT ANSWER.IN THE ANSWER FIELDS ARE THE SAME CORRECT ANSWER TOO. PLEASE HELP ME TO CREATE ONE TEST PAGE WHERE THE USER WILL SELECT THE ANSWER AND THEN IT WILL BE COMPARE WITH SELECTION IS TRUE OR NOT.

THANK YOU VERY MUCH
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 9 Oct, 2008 - 01:30 PM
Post #2


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,958



Thanked 13 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


First off, do not write in all capital letters, it is exceedingly annoying and will not get you any help.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM

Go to the top of the page

Moonbat
post 9 Oct, 2008 - 01:57 PM
Post #3


D.I.C Regular

Group Icon
Joined: 30 Jun, 2008
Posts: 376



Thanked 22 times

Dream Kudos: 600
My Contributions


I'm a level 80 Grand Magician GXE, just so you know. tongue.gif

Just use HTML radio buttons and a submit button, then run through the user's submission and check it against your DB's answer. If you know how to use forms in HTML and if you know some PHP (especially functions dealing with a MySQL database) this is a piece of cake.

Like William_Wilson said, we do need to see some good faith effort on your part, in the form of code.
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 04:25PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month