• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Link+input search

MikiMake

New Member
Joined
Jul 29, 2018
Messages
21
Reaction score
1
Hi there. I'm trying to make a search bar, were if you type something and hit enter, it will take you to a website for example tibia.com/"input"

So for example

I type in search bar demon and hit enter. Then it will take me to the website tibia.com/demon

I made something like this :

<?php
$player = $_GET['id'];
//The "id" inside the brackets is actually the name of the input in your form

?>
<form method="get" action="player.php">
<input type="search" class="form-control rounded" name="?subtopic=characters&name" placeholder="Search Character" aria-label="Search" aria-describedby="search-addon" />
<span class="input-group-text border-0" id="search-addon">
<i class="fa fa-search" ></i>
</span>
</form>
</div>

but the problem with this is that the link in the bar changes symbols ? and & like this : http://127.0.0.1/??subtopic=characters&name=test
Post automatically merged:

I've managed to complete this. Close the thread please ! :)
 
Last edited:
Back
Top