Jump to content

[SOLVED] checkbox


ilikephp

Recommended Posts

Sorry for not clarifiying!

 

I meant that for the field name: when I enter a name, and I click submit or accept, I need to see my form again, so the names are not erased because I put:

 

<input type="text" name="name" value="<?php if (isset($_POST['name'])) echo $_POST['name']; ?>">

 

I need to do the same for the checkboxes.

Link to comment
Share on other sites

thx for the link, it is well organised and easy to understand;

but I did not find a solution to my problem :S

 

I am adding this script below for the fields, what should I add for the checkboxes?

value="<?php if (isset($_POST['name'])) echo $_POST['name']; ?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.