Solved

Checkbox checked value

Posted on 2013-01-28
3
304 Views
Last Modified: 2013-01-29
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
Comment
Question by:yaron89
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 38827089
<input type="checkbox" name="rme" checked="checked">

Open in new window

0
 
LVL 35

Expert Comment

by:Robert Schutt
ID: 38827132
Make sure the name of the checkbox matched the POST variable used.
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 38830098
@yaron, why grade B?
its an answer to your question !!!
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question