Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it L'avatar di eng
    Registrato dal
    Mar 2002
    Messaggi
    1,227

    errore in un if then per una select html

    ciao a tutti,
    ho un problema col codice seguente.

    n_question_present è = 1
    question_no = 1

    ----------------
    Codice PHP:
    <SELECT name="question_no_selected">
        <
    OPTION value="">seleziona
        
    <%For j=1 to n_question_present%>
        <
    OPTION value="<%=j%>" <%If (question_noThen%>SELECTED<%End If%>><%=j%>
        <%
    Next%>
    </
    SELECT>


    <%
    response.write "question_no="question_no &"
    "
    response.write "question_no+1="question_no+&"
    "
    response.write "j="&"
    "
    response.write "j+1="j+&"
    "
    %> 

    non riesco a capire perché non mi stampa il SELECT.
    eppure le response.write stampano:

    question_no=1
    question_no+1=2
    j=2
    j+1=3


    che devo fa ?

    grazie
    ciao
    EnG

  2. #2
    codice:
    if cint(j)=cint(question_no) then

  3. #3
    Utente di HTML.it L'avatar di eng
    Registrato dal
    Mar 2002
    Messaggi
    1,227
    grazie: adesso mi studio quella furnzione e perchè accade questo "errore"...
    ciao
    EnG

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 © 2025 vBulletin Solutions, Inc. All rights reserved.