'how to make the button one click and after 24 hours the button is activated to click again and save it in the session
how to make the button one click and after 24 hours the button is activated to click again and save it in the session so that it doesn't reset when the page is refreshed. please help me im using Codeigniter Framework this my code. and i dont know how to make a javascript to one click in 24 hours
<form action="" method="post">
<input type="hidden" name="transaksi" value="withdraw">
<input type="hidden" name="waktu" id="waktu" value="<?php echo "" . date("d/m/Y h:i:s");?> .UTC/GMT +1 hour">
<input type="hidden" name="user_id" value="<?=$this->fungsi->user_login()->user_id?>">
<input type="hidden" name="status" value="pending">
<input type="hidden" name="limit_wd" id="limit_wd" value="<?=$this->fungsi->user_login()->saldopro/10?>">
<input type="hidden" name="saldopro" id="saldopro" value="<?=$this->fungsi->user_login()->saldopro?>">
<input value="<?=$this->fungsi->user_login()->username?>" maxlength="140" class="uni-input-input" placeholder="nama" name="username" type="hidden" id="username" required/>
<uni-view data-v-4c8a97d4="" class="form-group plr30 mb20">
<uni-input data-v-4c8a97d4="" class="ft28"><div class="uni-input-wrapper">
<input value="<?=$this->fungsi->user_login()->nowa?>" maxlength="140" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" placeholder="62812xxxx" name="nowa" type="number" id="nowa" required/><!----></div>
</uni-input>
</uni-view>
<uni-view data-v-4c8a97d4="" class="form-group plr30 mb20">
<uni-input data-v-4c8a97d4="" class="ft28"><div class="uni-input-wrapper">
<div class="uni-input-placeholder input-placeholder" data-v-4c8a97d4="" style=""></div><input id="jumlah_wd" name="jumlah_wd" min="1" max="<?=$this->fungsi->user_login()->saldopro*10/100?>" placeholder="quota 0.01-<?=$this->fungsi->user_login()->saldopro*10/100?>" type="number" class="uni-input-input"><!----></div>
</uni-input>
</uni-view>
<uni-view data-v-4c8a97d4="" class="c_red mb20">Fee: 1.00 TRX </uni-view>
<uni-view data-v-4c8a97d4="" class="form-area plr30 mb20">
<uni-textarea data-v-4c8a97d4="" class="ft28"><div class="uni-textarea-wrapper"><div class="uni-textarea-line"> </div><div class="uni-textarea-compute"><div>.</div><uni-resize-sensor><div><div></div></div><div><div></div></div></uni-resize-sensor></div><input id="address" name="address" placeholder="Adress Start with (T)" maxlength="140" enterkeyhint="" class="uni-textarea-textarea" style="overflow-y: auto;"> <!----></div>
</uni-textarea>
</uni-view>
<center>
<button type="submit" data-v-4c8a97d4="" class="flex-center confirm-btn">Confirm</button>
</center>
</form>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
