Pagina 4 di 6 primaprima ... 2 3 4 5 6 ultimoultimo
Visualizzazione dei risultati da 31 a 40 su 59

Discussione: form PhP

  1. #31
    beh, a sto punto eliminiamo il banner e fine..

    Codice PHP:
    <?php
    if(!isset($_GET['el'])) {
    ?>
    <form action="?el=1" method="post">
        nome link:

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

        indirizzo link:

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

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

    </form>
    <?php
    } else if ($_GET['el'] == 1) {
        
    $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([url="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg"]<a href="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg" target="_blank"><a href="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg" target="_blank">[url]http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg[/url][/url]</a></a> );
    }
    -->
    </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]
    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='".$_POST[']".$_POST['link_name']."[/url]
    ";
        $text = "";
        $text .= $header;
        $text .= $codice;
        $text .= $footer;
    $url = "http://crovaxcarlo.altervista.org/equip/file.html";
        if ($fp = fopen ($url, "w") {
            fputs ($fp, $text);
            fclose ($fp);
        }
        header ("Location: $url);
    ?>

  2. #32
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    azz, ora l'errore è nella linea 75
    comnque, se secondo te creano problemi banner e simili, toglieli pure, l'importante e che ci siano i link e lo sfondo
    garzie davvero, se non fosse epr te starei annegando nei codici

  3. #33
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    sono proprio sfortunello, nn mi vai bene una cosa, ora che credevo di esserci risucito grazie al tuo prezioso aiuto, si presentano tantissimi errori

  4. #34
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    PSL help!

  5. #35
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    ho capito dove è lì'errore, è qua:

    Codice PHP:
        $codice "[url='".$_POST[']".$_POST['link_name']."[/url]
    "; 
        $text = ""; 
        $text .= $header; 
        $text .= $codice; 
        $text .= $footer; 
    $url = "http://crovaxcarlo.altervista.org/equip/file.html"; 
     [B]   if ($fp = fopen ($url, "w") { [/B]          fputs ($fp, $text); 
            fclose ($fp); 
        } 
        header ("Location: $url); 
    ?> 
    la riga che ho fatto in grassetto mi risultata come errorere, però non so ne il perchè e ne come fare epr sistemarlo, per favore aiutoooooo

  6. #36
    giusto per sicurezza, prova a ricopiare il codice che ho postato sopra (al primo post di questa pagina) e ad incollarlo di nuovo nella tua pagina..

    è strano che non funzioni...

  7. #37
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    ho provato, ma non funziona :8
    non vorrei che fosse mio l'errore per il percorso del file che devo mettere, comuqnue mi dice che l'errore è alla linea 75..

  8. #38
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    mi dice che c'è un errore di sintassi qui:

    Codice PHP:
       if ($fp fopen ($url"w") { 

    poichè questo è il messaggio:

    http://crovaxcarlo.altervista.org/aaaa.php


  9. #39
    ops

    faccio sempre il solito errore...

    ora è a posto
    Codice PHP:
    <?php
    if(!isset($_GET['el'])) {
    ?>
    <form action="" method="post">
        nome link:

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

        indirizzo link:

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

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

    </form>
    <?php
    } else if ($_GET['el'] == 1) {
        
    $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([url="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg"]<a href="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg" target="_blank"><a href="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg" target="_blank"><a href="http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg" target="_blank">[url]http://www.akiraweb.it/sfondi/fantasy/fantasy_2.jpg[/url][/url]</a></a></a> );
    }
    -->
    </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]
    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='".$_POST[']".$_POST['link_name']."[/url]
    ";
        $text = "";
        $text .= $header;
        $text .= $codice;
        $text .= $footer;
        $url = "http://crovaxcarlo.altervista.org/equip/file.html";
        if ($fp = fopen ($url, "w")) {
            fputs ($fp, $text);
            fclose ($fp);
        }
        header ("Location: $url");
    }
    ?>

  10. #40
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    169
    Evviva! non mia errori, però non credo funzioni

    guarda tu stesso

    http://crovaxcarlo.altervista.org/aaaa.php

    se premoelaora non fa nulla..

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