Solved

Checkbox checked value

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ignore other .htaccess 2 45
Joomla 2.5 shopping cart 7 23
Scroll 5 news at a time. 4 28
Get a subdirectory name from a url 5 16
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

831 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