Jump to content

john_jack

Members
  • Content count

    75
  • Joined

  • Last visited

  • Days Won

    4

john_jack last won the day on April 25

john_jack had the most liked content!

Community Reputation

7 Neutral

About john_jack

  • Rank
    Newbie
  • Birthday 11/16/1984

Profile Information

  • Location
    Morocco

Previous Fields

  • Languages
    php, javascript anything web related
  1. Ajax results in input element

    I believe this is what you are trying to achieve https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax_post sending and receiving Data.
  2. I want content to show when a button is clicked

    You can use Ajax to load data(images, text ....) from a separate file which contains php,asp, txt depending on what you are using once the data is ready to be displayed you can use w3 animation to make it look fancy . Here's the ajax tutorial Ajax.
  3. RSASHA256 Javascript code for security token to get data from API

    here's a JS library you can use to sign/verify signatures . JsRSAsign
  4. UBL Bank payment integration with PHP

    on the second screenshot the Enable/disable checkbox is not checked .you should also verify your api-login and transactionkey make sure they are both correct. i assume you already have a woocommerce account linked to your credit card / bank account .
  5. How to customize CSS to change what is an active link

    you can use this .box-1:hover{ background: #390142; } i am using :hover the CSS will take effect when hovering the class box-1 . and do the same for the other boxes . good luck
  6. Site Help Please

    Take a look at Media queries https://www.w3schools.com/css/css_rwd_mediaqueries.asp these are what you need to make your style reshape it self when on a small resolution , that can also fix your image size problem .(you gonna have to write your proper css that you want to be executed on each @Media query) for the font problem theres already an existing css file somewhere in the website which overrides your current css . using !important; in css to override the previous css .
  7. UBL Bank payment integration with PHP

    Share the info provided by the bank then maybe someone can help.
  8. how to put a text under a text

    here you can check out this tutorial ,might help you do what you ask .Tutorial
  9. <?php session_start(); //start the session for the page include("../include/db.php"); //include database file include("../include/settings.php"); //include configuration file //Check if page was entered by a submit button $email=$_POST['email']; //Get username !!FROM FORM!! $email = ereg_replace(" ", "", $email); //take away all spaces from username (if any) !!FROM FORM!! $password=base64_encode($_POST['password']); //Get name !!FROMFORM!! if (empty($email) || empty($password)) { echo "Empty fields";} else{ //check to see if the username or email allready excists $ck=$flash->prepare("SELECT * FROM `user` WHERE `email`=:email AND `password`=:password "); //get rows where the username or email address is allready registered $ck->bindParam(':email',$email); $ck->bindParam(':password',$password); $ck->execute(); //if email address allready excists if($ck->rowCount() > 0){ echo "user loged in successfully"; } else{ echo "Login or password inccorect";} } ?> use that phpand keep the alert(result); it should be clear now
  10. i believe you got gist of it, when using ajax calls, you do not use header :location instead you can echo a unique value depending on the case . and on the javascript side use if(result=="something"){do something} if(result=="somethingelse"){do somethingelse} Good luck
  11. replace that with this so you knowwhat you are doing : success: function(result) { alert(result); } and on the php side depending on what error pops up make a code : empty fields echo 0 login was succesfull echo 1 login or pass incorrect echo 2
  12. replace the "header('location:../indess.html');" with " echo '0';" all theredirections should be done on the Ajax/Js side
  13. replace that with lets say : success: function(result) { if(result=="1") { //here is where you do redirect to ../user.html using javascript check the paths window.location.assign("../user.html") } else { //error hadling show a message login or password incorrect depending on what or where you want to display them } } and replace this with : if($ck->rowCount() > 0){ echo "1"; } else{ echo "0";}
  14. Look at the Console Tab to check the Error.
  15. firstname isnt the field name it should be $_POST['email']; since you have this :
×