DEVGET.NET

Feeding Your Inner Developer

Category: PHP/JS/MySQL Scripting

How to add hidden fields to form and submit with Javascript

In HTML Code: <form action=’myScript.php’ method=’get’ name=’myForm’> </form> Javascript code: var form = document.forms[‘myForm’]; // form.action = ‘put your url…

Boolean toggle in PHP

Instead of using: if($boolean === true){ $boolean = false; }else{ $boolean = true; } One can use $boolean = !$boolean;…

© 2020 DEVGET.NET. Theme by Anders Norén.