Solved

Checkbox checked value

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wordpress Security 29 48
Need to remove %20 from url in get 17 36
Accessing specific element - DOM PHP HTML 8 34
check mysql insert 12 26
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to count occurrences of each item in an array.
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…

860 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