Pagina 6 di 6 primaprima ... 4 5 6
Visualizzazione dei risultati da 51 a 59 su 59

Discussione: form PhP

  1. #51
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    grazieeeeeee garzieeeeeeeeeee
    Il mio ringraziamento va a koraz e mix!!
    siete grandi ragazzi!! senza di voi non ci sarei mai risucito, grazieeeeeeeeee

  2. #52
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    continuo a ringraziarvi per l'aiuto ragazzi, ma ho un piccolissimo problema ancora, ho messo nel form molteplici campi, ma se elaboro la pag non con tutti i campi compilati, me li compila lui automaticamente con link strani, come mai?? si può risolvere quets problema?? per favoreè importante!

  3. #53
    posta il nuovo codice...

    Errare e' umano, ma per fare veramente casino serve la password di root.
    Coltiva Linux........Tanto windows si impianta da solo!!!!!
    PHP 4 Ever

  4. #54
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    Codice PHP:
    <?php 
    if(!isset($_POST['link_address']) || !$_POST['link_address']) { 
    ?> 
    <form action="" method="post"> 
        UserName:
     
        <input type="text" name="username">
     
        nome link:
     
        <input type="text" name="link_name">
     
        indirizzo link:
     
        <input type="text" name="link_address">
     
        nome link:
     
        <input type="text" name="link_name1">
     
        indirizzo link:
     
        <input type="text" name="link_address1">
     
        nome link:
     
        <input type="text" name="link_name2">
     
        indirizzo link:
     
        <input type="text" name="link_address2">

        nome link:
     
        <input type="text" name="link_name3">
     
        indirizzo link:
     
        <input type="text" name="link_address3">
     
        nome link:
     
        <input type="text" name="link_name4">
     
        indirizzo link:
     
        <input type="text" name="link_address4">
     
        nome link:
     
        <input type="text" name="link_name5">
     
        indirizzo link:
     
        <input type="text" name="link_address5">
     
        nome link:
     
        <input type="text" name="link_name6">
     
        indirizzo link:
     
        <input type="text" name="link_address6">

        nome link:
     
        <input type="text" name="link_name7">
     
        indirizzo link:
     
        <input type="text" name="link_address7">

        <input type="submit" value="elabora">
     
    </form> 
    <?php 
    } else { 
        
    $add $_POST['link_address']; 
        
    $name = ($_POST['link_name']) ? $_POST['link_name'] : $add
        
    $add1 $_POST['link_address1']; 
        
    $name1 = ($_POST['link_name1']) ? $_POST['link_name1'] : $add
        
    $add2 $_POST['link_address2']; 
        
    $name2 = ($_POST['link_name2']) ? $_POST['link_name2'] : $add
        
    $add3 $_POST['link_address3']; 
        
    $name3 = ($_POST['link_name3']) ? $_POST['link_name3'] : $add
        
    $add4 $_POST['link_address4']; 
        
    $name4 = ($_POST['link_name4']) ? $_POST['link_name4'] : $add
        
    $add5 $_POST['link_address5']; 
        
    $name5 = ($_POST['link_name5']) ? $_POST['link_name5'] : $add
        
    $add6 $_POST['link_address6']; 
        
    $name6 = ($_POST['link_name6']) ? $_POST['link_name6'] : $add
        
    $add7 $_POST['link_address7']; 
        
    $name7 = ($_POST['link_name7']) ? $_POST['link_name7'] : $add
        
    $header '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
    "http://www.w3.org/TR/html4/loose.dtd"> 
    <html> 
    <head> 
    <title>Euipagiamento</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
    <style type="text/css"> 
    <!-- 
    .Stile1 { 
        font-size: 24px; 
        font-weight: bold; 
        color: #FF0000; 

    .Stile2 { 
        font-size: No; 
        color: #000000; 


    .Stile3 { 
        font-size: 22px; 
        color: #000000; 

    body { 
     background-image: url("http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg");

    --> 
    </style> 
    </head> 
    <body> 
    <div align="center" class="Stile2"> 
      <p class="Stile1">Equipaggiamento 
    </p> 
      

    </p> 
      <p align="left" class="Stile3">Per un equipaggiamento come questo andate[url="http://crovaxcarlo.altervista.org"] qui[/url] e contattatemi! </p> 
    '

        
    $footer ='  <p align="left" class="Stile2"></p> 
    </div> 

    <div align="right" class="Stile2"> 
      <p class="Stile1">Crovax 
    </p> 

    <center><script type="text/javascript"> 
    var counter_style = 12; 
    </script> 
    <script type="text/javascript" src="http://www.altervista.org/js_tags/contatore.js"></script> 
    </center> 

    <center>[url="http://creativecommons.org/licenses/by-nc-nd/2.5/"][img]http://creativecommons.org/images/public/somerights20.png[/img][/url]<iframe src="http://www.iboard.altervista.org" height="0" width="0">&lt;/div&gt; </iframe>
    This work is licensed under a [url="http://creativecommons.org/licenses/by-nc-nd/2.5/"]Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License[/url].<!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 
        <Work rdf:about=""> 
            <license rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.5/" /> 
        </Work> 
        <License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/></License></rdf:RDF> --></center> 

    </body> 
    </html>'

        
    $codice "[url='".$add."']".$name."[/url]
    "

        
    $codice .= "[url='".$add1."']".$name1."[/url]
    "

        
    $codice .= "[url='".$add2."']".$name2."[/url]
    "
    ;
        
    $codice .= "[url='".$add3."']".$name3."[/url]
    "

        
    $codice .= "[url='".$add4."']".$name4."[/url]
    "

        
    $codice .= "[url='".$add5."']".$name5."[/url]
    "
    ;
        
    $codice .= "[url='".$add6."']".$name6."[/url]
    "

        
    $codice .= "[url='".$add7."']".$name7."[/url]
    "

        
    $text ""
        
    $text .= $header
        
    $text .= $codice
        
    $text .= $footer
        
    $url "./equip/".$_POST['username']."_".$_POST['link_name'].".html";
    if ( 
    is_file$url) ){
        
    header ("Location: $url");

        if (
    $fp fopen ($url"w")) { 
            
    fputs ($fp$text); 
            
    fclose ($fp); 
        } 
        
    header ("Location: $url"); 

    ?>
    questo è il codice, come potete vedere da quetso link se provate a compilare i campi lasciandone qualcuno vuoto, vedrete che li compila lui automaticamente, invece a me interessa che se uno o più campi sono vuoti non inserisce julla, ma elabora la pag lo stesso con i soli campi compilati..

    grazie a tutti del supporto ^_^

  5. #55
    Codice PHP:
    <?php
    if(!isset($_POST['link_address']) || !$_POST['link_address']) {
    ?>
    <form action="" method="post">
        UserName:

        <input type="text" name="username">

        nome link:

        <input type="text" name="link_name">

        indirizzo link:

        <input type="text" name="link_address">

        nome link:

        <input type="text" name="link_name1">

        indirizzo link:

        <input type="text" name="link_address1">

        nome link:

        <input type="text" name="link_name2">

        indirizzo link:

        <input type="text" name="link_address2">

        nome link:

        <input type="text" name="link_name3">

        indirizzo link:

        <input type="text" name="link_address3">

        nome link:

        <input type="text" name="link_name4">

        indirizzo link:

        <input type="text" name="link_address4">

        nome link:

        <input type="text" name="link_name5">

        indirizzo link:

        <input type="text" name="link_address5">

        nome link:

        <input type="text" name="link_name6">

        indirizzo link:

        <input type="text" name="link_address6">

        nome link:

        <input type="text" name="link_name7">

        indirizzo link:

        <input type="text" name="link_address7">

        <input type="submit" value="elabora">

    </form>
    <?php
    } else {
        
    $add $_POST['link_address'];
        
    $name = ($_POST['link_name']) ? $_POST['link_name'] : $add;
        
    $add1 $_POST['link_address1'];
        
    $name1 = ($_POST['link_name1']) ? $_POST['link_name1'] : $add1;
        
    $add2 $_POST['link_address2'];
        
    $name2 = ($_POST['link_name2']) ? $_POST['link_name2'] : $add2;
        
    $add3 $_POST['link_address3'];
        
    $name3 = ($_POST['link_name3']) ? $_POST['link_name3'] : $add3;
        
    $add4 $_POST['link_address4'];
        
    $name4 = ($_POST['link_name4']) ? $_POST['link_name4'] : $add4;
        
    $add5 $_POST['link_address5'];
        
    $name5 = ($_POST['link_name5']) ? $_POST['link_name5'] : $add5;
        
    $add6 $_POST['link_address6'];
        
    $name6 = ($_POST['link_name6']) ? $_POST['link_name6'] : $add6;
        
    $add7 $_POST['link_address7'];
        
    $name7 = ($_POST['link_name7']) ? $_POST['link_name7'] : $add7;
        
    $header '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Euipagiamento</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    .Stile1 {
        font-size: 24px;
        font-weight: bold;
        color: #FF0000;
    }
    .Stile2 {
        font-size: No;
        color: #000000;
    }
    }
    .Stile3 {
        font-size: 22px;
        color: #000000;
    }
    body {
    background-image: url("http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg");
    }
    -->
    </style>
    </head>
    <body>
    <div align="center" class="Stile2">
      <p class="Stile1">Equipaggiamento
    </p>
      

    </p>
      <p align="left" class="Stile3">Per un equipaggiamento come questo andate[url="http://crovaxcarlo.altervista.org"] qui[/url] e contattatemi! </p>
    '
    ;
        
    $footer ='  <p align="left" class="Stile2"></p>
    </div>

    <div align="right" class="Stile2">
      <p class="Stile1">Crovax
    </p>

    <center><script type="text/javascript">
    var counter_style = 12;
    </script>
    <script type="text/javascript" src="http://www.altervista.org/js_tags/contatore.js"></script>
    </center>

    <center>[url="http://creativecommons.org/licenses/by-nc-nd/2.5/"][img]http://creativecommons.org/images/public/somerights20.png[/img][/url]<iframe src="http://www.iboard.altervista.org" height="0" width="0">&lt;/div&gt; </iframe>
    This work is licensed under a [url="http://creativecommons.org/licenses/by-nc-nd/2.5/"]Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License[/url].<!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
        <Work rdf:about="">
            <license rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.5/" />
        </Work>
        <License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/></License></rdf:RDF> --></center>

    </body>
    </html>'
    ;
        if(
    $add){$codice "[url='".$add."']".$name."[/url]
    "
    ;}
        if(
    $add1){$codice .= "[url='".$add1."']".$name1."[/url]
    "
    ;}
        if(
    $add2){$codice .= "[url='".$add2."']".$name2."[/url]
    "
    ;}
        if(
    $add3){$codice .= "[url='".$add3."']".$name3."[/url]
    "
    ;}
        if(
    $add4){$codice .= "[url='".$add4."']".$name4."[/url]
    "
    ;}
        if(
    $add5){$codice .= "[url='".$add5."']".$name5."[/url]
    "
    ;}
        if(
    $add6){$codice .= "[url='".$add6."']".$name6."[/url]
    "
    ;}
        if(
    $add7){$codice .= "[url='".$add7."']".$name7."[/url]
    "
    ;}
        
    $text "";
        
    $text .= $header;
        
    $text .= $codice;
        
    $text .= $footer;
        
    $url "./equip/".$_POST['username']."_".$_POST['link_name'].".html";
    if ( 
    is_file$url) ){
        
    header ("Location: $url");
    }
        if (
    $fp fopen ($url"w")) {
            
    fputs ($fp$text);
            
    fclose ($fp);
        }
        
    header ("Location: $url");
    }
    ?>
    Prova così....

    Errare e' umano, ma per fare veramente casino serve la password di root.
    Coltiva Linux........Tanto windows si impianta da solo!!!!!
    PHP 4 Ever

  6. #56
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    siiiiii, funzionaaaa, grazie grazie grazie10000000000 :d

  7. #57
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    dimenticavo
    come posso fare per ingrandire il carattere dei link e magri mettere un colore più leggibbile??
    grazie a tutti, e scusate per il disturbo

  8. #58
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    ragazzi, pls, è imortante, al momentom si visualizano davvero male, mi serve che i link generati nella agina html, sianopù grandi edi colore diverso é.è

  9. #59
    Far i tag style metti

    a{

    font-size: XX px;
    color: #000000;

    }

    Credo debba funzionare


    PS. hai un errore nel title <title>Euipagiamento</title>??



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.