Solved

Checkbox checked value

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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…

708 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

15 Experts available now in Live!

Get 1:1 Help Now