im new to php . plz help. i have a page where people fill in a form and check on checkboxes. i also have a page where i edit. i want to know if its possible that on my edit page i could see the checked box checked ? example if "checkbox male" was checked and i want to edit it. on my edit page , can it appear checked already? how if possible?
ernesto22
0
Newbie Poster
Recommended Answers
Jump to PostSome code hints would be nice: like, where do you get the data from, in what form? Considering that the users can only be male or female, you need radio buttons (only use checkboxes for design reasons). Theoretically you can do something like this:
echo '<input type="radio" …
Jump to PostYou could use a code that looks like this:
<?php echo "<form>"; // not sure what gmale is your supposed to be or if it is supposed to be an if statment. $gmale = 1; } else { $gmale = 0; } if ($_REQUEST['fmale']!='') { echo "<input …
All 7 Replies
Adrian_5
1
Light Poster
ernesto22
0
Newbie Poster
toxicandy
2
Junior Poster
diafol
ernesto22
0
Newbie Poster
diafol
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.