• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

Checkbox checked value

In my web page  I have a form with "remember me" check box.
I would like that it would be checked as a default.
In order for that I need to set the checked value.

<input type="checkbox" name="rme" checked value="??????" />
The PHP code after submit is:  if (isset($_POST["remeberMe"]))...

What is the checked value that I need ?
0
yaron89
Asked:
yaron89
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
<input type="checkbox" name="rme" checked="checked">

Open in new window

0
 
Robert SchuttSoftware EngineerCommented:
Make sure the name of the checkbox matched the POST variable used.
0
 
Meir RivkinFull stack Software EngineerCommented:
@yaron, why grade B?
its an answer to your question !!!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now