• 20-12-2023, 02:49:29
    #1
    Arkadaşlar merhaba elimde aşağıdaki gibi bir arama kutusu kodu var, kutuya yazdığım şeyi linkin sonuna eklemesini istiyorum ama sonuna ?q= ekliyor. Linke "?q=" eklemesini nasıl kaldırabilirim? örneğin kutuda 123 yazıyorsa linke de direkt deneme.com/123 gibi yönlendirmesini istiyorum

    <body>
    <div class="hero">
    <div id="searchBox">
    <i class="fa fa-hashtag fa-4x" id="googleIcon"></i>
    <form action="https://dene.tr/">
    <input type="text" placeholder="dene" name="q">
    <button type="submit"></button>
    </div>
    </div>
    </body>
  • 20-12-2023, 02:51:21
    #2
    hocam bu basit html ile yapılmaz, bunu yapsan bile 404 hatası alırsın.
    .htaccess ile sayfalama da yapman gerekir
  • 20-12-2023, 02:52:43
    #3
    Misafir adlı üyeden alıntı: mesajı görüntüle
    hocam bu basit html ile yapılmaz, bunu yapsan bile 404 hatası alırsın.
    .htaccess ile sayfalama da yapman gerekir
    ben sadece yazılan adrese yönlendirsin istiyorum, yazılan adreste çıkan sayfa önemli değil
  • 20-12-2023, 03:03:39
    #4
    alicelen adlı üyeden alıntı: mesajı görüntüle
    ben sadece yazılan adrese yönlendirsin istiyorum, yazılan adreste çıkan sayfa önemli değil
    <body>
    <div class="hero">
    <div id="searchBox">
    <i class="fa fa-hashtag fa-4x" id="googleIcon"></i>
    <form onsubmit="submitForm(event)">
    <input type="text" placeholder="dene" id="searchInput">
    <button type="submit">Ara</button>
    </form></div> </div>
    <script>
    function submitForm(event) {
    event.preventDefault();
    var searchText = document.getElementById('searchInput').value;
    if (searchText.trim() !== '') {
    var newUrl = 'https://dene.tr/' + encodeURIComponent(searchText);
    window.location.href = newUrl; } }
    </script>
    </body>
    bu işinizi görür öyleyse
    • kozanfirmam
    • alicelen
    kozanfirmam ve alicelen bunu beğendi.
    2 kişi bunu beğendi.
  • 20-12-2023, 03:24:51
    #5
    Misafir adlı üyeden alıntı: mesajı görüntüle
    <body>
    <div class="hero">
    <div id="searchBox">
    <i class="fa fa-hashtag fa-4x" id="googleIcon"></i>
    <form onsubmit="submitForm(event)">
    <input type="text" placeholder="dene" id="searchInput">
    <button type="submit">Ara</button>
    </form></div> </div>
    <script>
    function submitForm(event) {
    event.preventDefault();
    var searchText = document.getElementById('searchInput').value;
    if (searchText.trim() !== '') {
    var newUrl = 'https://dene.tr/' + encodeURIComponent(searchText);
    window.location.href = newUrl; } }
    </script>
    </body>
    bu işinizi görür öyleyse
    tam olarak bunu arıyordum çok teşekkürler hocam