Solved

Checkbox checked value

Posted on 2013-01-28
3
299 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now