Log in

View Full Version : Retrieving Data from Database to use in HTML



mada9369
02-08-2009, 04:54 AM
I'm trying to create a edit form so i can edit my users.
But i use numbers to say what they can do.

1 = yes
0 = no

but when im getting the information
its having both of them checked
because its the same statement.

is there a way that i can make the other one not check?
or is there a way to do that in php?

Javascript? HTML?

sysout
02-08-2009, 09:14 AM
You wanna create a form, right?

If you wanna add a flag like that, I suggested you using HTML (list)

List Value : 0/1
then send that form through PHP using Post/Get method

mada9369
02-08-2009, 04:54 PM
You wanna create a form, right?

If you wanna add a flag like that, I suggested you using HTML (list)

List Value : 0/1
then send that form through PHP using Post/Get method

I don't think that would work.
Because there are different names to the columns.

Im just trying to pull the information so the administrative user will know what it was so they don't have to go through all the steps again.