Visualizzazione dei risultati da 1 a 2 su 2

Discussione: url

  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2004
    Messaggi
    163

    url

    Dovrei prendere l'intero url della pagina e passarlo nel href. Cioè

    <a href="QUI DEVO METTERE L'URL DELLA PAGINA&page=1">...

    Qualcuno può darmi la sintassi per fare ciò?
    GRAZIE ANTICIPATAMENTE PER L'AIUTO...

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    codice:
    <%
    domain = Request.ServerVariables("HTTP_HOST") 'Host
    dir = Request.ServerVariables("PATH_INFO") 'Directory di base
    q_string = Request.ServerVariables("QUERY_STRING") 'Query string
    if q_string = "" or IsNull(q_string) then
    	path_completo = dir 'Path completo
    else
    	path_completo = dir &"?"& q_string 'Path completo
    end if%>
    ... 
    Roby

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.