Unstoppable Domains โ€” Get your daily AI drops report

Multipage form, checkbox, php, hidden field

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

virtualrush

Account Suspended
Impact
0
hey, just saw your php community and wondering if u cud help me out

I have a multipage form, that can be accessed in any order.
I have many checkboxes that need filling in, and that need to be carried over to the next forms or previous ones to be filled. They should remember their state when each page is looked at.

I have tried using hidden fields with no effect(affect!), this is wot ive done then ive tried to fill in the checkbox from the the hidden field value:

<input <?php if (!(strcmp($_POST['dal'],"dal"))) {echo "checked";} ?> name="dal" type="checkbox" id="dal" value="<?php echo $_POST['dal']; ?>">


Im new to php, gave it my best shot, so any help on this would be great,

thanks alot folks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
0
•••
There are people here that can help. You need to make it something like the following:
<input type="hidden" name="CHECKBOXNAME" value="<?=CHECKBOXNAME;?>">

That will correctly pass the variable to the same pages. Make sure that is inside the <form></form> tags.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Truehost โ€” .com domains from $4.99, hosting includedTruehost โ€” .com domains from $4.99, hosting included
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back