Jump to content

ephdee

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ephdee

  • Rank
    Member
  1. I want the modal to show after the user has fill the form, But don't know how to do that. Am very new in javascript. After the user have fill the form and click on the proceed button the modal should pop up but if the user did not fill all the form the modal should not display and and an error message should alert.. When the modal display then the user should fill the 1st modal form with a code 123456, if the user did not put anything or give a wrong code the 2nd modal should not show but if he/she does it should display. THIS IS THE HTML FORM <div class="panel panel-default"> &l
  2. concerning the issues, whenver i click on the the 2nd button before clicking on the 1st button it show the modal window but does not show the user input (2nd button): <button type="button" id="myBtn" name="myBtn" class="btn btn-info" data-toggle="modal" data-target="#myModal">Proceed</button> but when i click on the 1st submit button it reload the page but does not show the modal . if i decide to click on the 2nd button again after i have click on the 1st one, it show the user input in the modal (1st button): <input type="submit" name="myBtn" /> i only need o
  3. My answer is yes to all your questions those are the exact problem i am facing. I am trying to do it with some more JS. I dont know but i think this where i am having issues <form method="post" action=""> <input type="text" name="something" value="<?= isset($_POST['something']) ? htmlspecialchars($_POST['something']) : '' ?>" /> </form> <!-- Trigger/Open The Modal --> <button type="button" id="myBtn" name="myBtn" class="btn btn-info" data-toggle="modal" data-target="#myModal">Proceed</button> <!-- The Modal --> <di
  4. Yes is going to be popup div modal. After confirming their input and click on submit another modal will pop. Its an assignment and that is the way we are instructed to do it. kindly help me please. I Have been facing this challenge for over a month.
  5. The reason i wanted to show it in modal is to allow the user to confirm/verify. After verification the user then click the submit button in modal and a new modal window will pop up
  6. You were trying to eexplain something to me in your first reply......... but i really dont get the explanation
  7. The below code is not part of it, it was a mistake <input type="submit" name="myBtn" />
  8. i dont get you please am still new to php and javscript. kindly explain to me better or modify the code for me please
  9. <form method="post" action=""> <input type="text" name="something" value="<?= isset($_POST['something']) ? htmlspecialchars($_POST['something']) : '' ?>" /> <input type="submit" name="myBtn" /> </form> <!-- Trigger/Open The Modal --> <button type="button" id="myBtn" class="btn btn-info" data-toggle="modal" data-target="#myModal">Proceed</button> <!-- The Modal --> <div id="myModal" class="modal"> <!-- Modal content --> <div class="modal-content"> <span class="close">×</span&g
  10. How do i change the code from mysql to mysqli or pdo?
  11. Hi am new to php and am facing some difficulty concerning the login.php. My register.php is inserting to the database but when i try to select it so i can login it keeps showing me the errmsg. These are the codes.. <?php ob_start(); session_start(); require_once 'dbconnect.php'; // it will never let you open index(login) page if session is set if ( isset($_SESSION['user'])!="" ) { header("Location: home.php"); exit; } $error = false; if( isset($_POST['btn-login']) ) { // prevent sql injections/ clear user invalid inputs $userlogin = trim($_POST['userlogin']); $
×
×
  • 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.