Home Php login page; redirect after logging in by number to user page
Reply: 2

Php login page; redirect after logging in by number to user page

Jakub Harabiš
1#
Jakub Harabiš Published in 2018-02-13 12:35:43Z

I want to have php page, where you input a six-digit number into textbox and you press button. After that it will redirect you to "/that number you put in.html". I had something like this before, but I can't remember how to do that.

Thanks for answers

Patrick
2#
Patrick Reply to 2018-02-13 12:50:12Z
<?php

if(isset($_GET["sixdigit"])){
    header('Location: '. "URL/".$_GET["sixdigit"]);
}


?>


<form>
  6-digits<br>
  <input type="text" name="sixdigit">

  <br><br>
  <input type="submit" value="Submit">
</form> 
N Ouk
3#
N Ouk Reply to 2018-02-13 12:50:35Z

you mentioned redirect. Are you referring to a search-like box that will redirect to another .html page?

If so, you can redirect this way in your .php page.

header("Location: ../index.php?login=empty");

Depending where you want to redirect specifically, you could try

header("Location: ../123456.html"); I would like to ask, what kind of application is are working on?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.34655 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO