Forum Moderators: coopster

Message Too Old, No Replies

Posting Radio button with php

         

o trenseta o

4:01 am on Jul 17, 2004 (gmt 0)

10+ Year Member



hi all

Can someone help me out, im trying to post info from a radio button into it's selected table in mysql.

this is what i ahve in the form:

<input id="basic_pak" name="memType" type="radio" value="Basic Mem"/>Basic membership: $15
and i have a row called 'memType' but nothing is getting put into the row.

the row is just has varchar 50 not null; im no expert but i cant see anything worng with what im doing so far.

If you can help me out it woould be great.

King Regards

dkin

5:59 am on Jul 17, 2004 (gmt 0)

10+ Year Member



I am new to this as well but I do not see why there is an "id" in there, what works for me is take the id out make sure the "name" is the same for all radio buttons in the set then customize the values. Pass the "$name" to your database table as you would always do and you should be Golden :).

Let me know how you do.

o trenseta o

6:32 am on Jul 17, 2004 (gmt 0)

10+ Year Member



yes it did work , thanks a lot :)