Tag Archives: input

Post Email Input into Mysql Databse failed

Questions: I want post the email address from an User to my Mysql Database, but it always failed: Html code: <form action=”post.php” method=”post> <input id=”email” name=”email” type=”email” class=”hasHelp validateEmpty ” required=”required” value=”” autocomplete=”off” placeholder=”E-Mail-Adresse” aria-describedby=”emailErrorMessage”> <button class=”button actionContinue scTrack:unifiedlogin-login-submit” type=”submit” id=”btnLogin” name=”btnLogin” value=”Login” pa-marked=”1″>Einloggen</button></div></div><input type=”hidden” name=”” value=””></form> PHP: <?php $servername = “localhost”; $username = “username”;… Read More »

PHP & JQuery Adding Dynamic Inputs

Questions: I’m using Jquery in order to add dynamic inputs on my page. I only want to display one input initially, then more can be added by clicking a button. This works as expected. I’m then using PHP in order to catch the $_POST values of the inputs and send them to an external script.… Read More »

How to get POST data from multidimensional array input using Codeigniter when array index is not in English characters?

Questions: I have this snip of code: <?PHP if ($_POST) { echo “<pre>”; print_r($_POST[“test”]); echo “</pre>”; } ?> <form method=”POST”> <input type=”text” name=”test[تهران][]” value=”first”> <input type=”text” name=”test[تهران][]” value=”second”> <input type=”submit”> </form> and when I click the submit button, the output is: Array ( [تهران] => Array ( [0] => first [1] => second ) )… Read More »

Input contacts and taking it to the home screen

Questions: I am accepting 3 contacts from the user and then moving to the home screen as a part of registration process. But when some parts of the details are not filled, I need it to be checked and give a toast or prompt to fill all the details. When the details are filled the… Read More »