For example if i want to seach 112233 in the tracking number field to redirect to that specific file . 112233.php or 112233.html and so on if someone search 442244 for example to redirect to 442244.php or 442244.html , depends on how we will create the tracking pages ! Thank you
https://garny-rentals.com/test/tracking.html is where the field is located
This is the code :
<form class="">
<div class="col-md-7 col-sm-7">
<div class="form-group">
<input type="text" placeholder="Enter your product ID" required="" class="form-control box-shadow">
</div>
</div>
<div class="col-md-5 col-sm-5">
<div class="form-group">
<button class="btn-1">track your product</button>
</div>
</div>
</form>
I am stuck here !
2
Answers
Thank you , can you help me implement this ? where do i add it ?
So basically, on a button click you want to redirect to a new page, right?
If that’s the case, you don’t need a
<form>
for that purpose. All you need is to go to a differentlocation
using JavaScript:PS: don’t forget to redirect to a 404 page or at least show a notification error on that route like: "This tracking ID is expired or does not exsist".