Jump to content

eagle101

New Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About eagle101

  • Rank
    Newbie
  1. Hello i kinda new to programing mostly learning myself stuf there so i need some help to figure out. so i have lets say static link who always same and i write something in input field and press search button. so i get new link and immediately going to dat link, which means i leaving my site. in my case i working with image so my problem, is it somehow possible to display image in same page while writing someting in input field when presing button and image just change down below not going directly to link ? P.S. sory for my english i have this code <html> <head> <meta charset="utf-8"> <title>Finder</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <center> <h1> <strong>Finder<br> <br> </strong></font></h1> <form action="#" method="POST"> <input type="hidden" name="link" value="src1"> <input type="text" name="inputpart" placeholder="inputpart" size="40"> <input type="submit" name="submit" value="Search" > </form> </center> <?php require_once 'linkgenerator.php' ?> </body> </html> PHP link generator code <?php if (isset($_POST['link'])) { if ('src1' === $_POST['link']) { header("Location: https://staticlink" . $_POST["inputpart"] . ".png"); } } ?>
×
×
  • 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.