Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12

Discussione: Modifica Form dati

  1. #1

    Modifica Form dati

    Ciao a tutti,
    io ho un problema con un form dati che viene inviato via mail.
    Premettendo che non sono pratico di php e che sto lavorando solo sul lavoro di un altro, devo risolvere questo problema in fretta.
    Sostanzialmente la modifica è stupida ma non so perché non funziona. Si tratta di un modulo d'ordine di una pasticceria. Io devo solo modificare alcune descrizioni contenute nella pagina. Quindi niente che vada a variarmi il comportamento del form. Ditemi dove ho sbagliato.
    Ho scaricato la pagina utilizzando dreamweaver, sono entrato nel codice html della pagina ed ho modificato le due stringhe di testo direttamente dal codice. Dopodiché ho salvato e ho ripubblicato. Il risultato è che non è cambiato niente........perché?
    Perdonate l'ignoranza ma il php non lo conosco solo che devo risolvere per forza.
    Grazie
    Ciao

  2. #2
    Nessuno sa come aiutarmi??

  3. #3
    Utente bannato
    Registrato dal
    Sep 2005
    Messaggi
    905
    posta il codice

  4. #4
    <?PHP

    echo '
    <html>

    <head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <title>Modulo D\'ordine</title>
    </head>
    <center>
    <body background="sfondo.jpg">
    [img]Sugar_logo.gif[/img]

    <table cool width="581" height="532" border="0" cellpadding="0" cellspacing="0" gridx="10" showgridx usegridx gridy="16" showgridy usegridy>
    <tr height="1" cntrlrow>
    <td width="1" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="2" height="1"><spacer type="block" width="2" height="1"></td>
    <td width="47" height="1"><spacer type="block" width="47" height="1"></td>
    <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="40" height="1"><spacer type="block" width="40" height="1"></td>
    <td width="30" height="1"><spacer type="block" width="30" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
    <td width="85" height="1"><spacer type="block" width="85" height="1"></td>
    <td width="84" height="1"><spacer type="block" width="84" height="1"></td>
    <td width="60" height="1"><spacer type="block" width="60" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="9" height="1"><spacer type="block" width="9" height="1"></td>
    <td width="11" height="1"><spacer type="block" width="11" height="1"></td>
    <td width="80" height="1"><spacer type="block" width="80" height="1"></td>
    <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
    <td width="60" height="1"><spacer type="block" width="60" height="1"></td>
    </tr>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="20" height="32" colspan="2" rowspan="1" valign="top" align="left" xpos="0">
    <form name="form1" action="conferma.php" method="post">
    </td>
    <td width="10" height="32"></td>
    <td width="2" height="32"></td>
    <td width="47" height="32"></td>
    <td width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="40" height="32"></td>
    <td width="30" height="32"></td>
    <td width="10" height="32"></td>
    <td width="1" height="32"></td>
    <td width="85" height="32"></td>
    <td width="84" height="32"></td>
    <td width="60" height="32"></td>
    <td width="10" height="32"></td>
    <td width="9" height="32"></td>
    <td width="11" height="32"></td>
    <td width="80" height="32"></td>
    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>

    <!### TORTA ###!>
    <tr height="48">
    <td width="1" height="48"><spacer type="block" width="1" height="48"></td>
    <td width="10" height="48"></td>
    <td width="10" height="48"></td>
    <td width="10" height="48"></td>
    <td width="2" height="48"></td>
    <td width="98" height="48" colspan="4" rowspan="1" valign="top" align="left" xpos="32" content csheight="32">
    <font face="Times New Roman,Georgia,Times" size="2">Torta ordinata</font></td>
    <td width="30" height="48"></td>
    <td width="10" height="48"></td>
    <td width="1" height="48"></td>
    <td width="349" height="48" colspan="8" rowspan="1" valign="top" align="left" xpos="171">

    <input type="text" name="torta" size="47" value="'; echo $Xtorta; echo '"></td>

    <td width="60" height="48"></td>
    </tr>

    <!### DATA E PERSONE ###!>
    <tr height="64">
    <td width="1" height="64"><spacer type="block" width="1" height="64"></td>
    <td width="10" height="64"></td>
    <td width="10" height="64"></td>
    <td width="10" height="64"></td>
    <td width="2" height="64"></td>
    <td width="128" height="64" colspan="5" rowspan="1" valign="top" align="left" xpos="32" content csheight="32">
    <font size="2">Per quante persone</font></td>
    <td width="10" height="64"></td>
    <td width="86" height="64" colspan="2" rowspan="1" valign="top" align="left" xpos="170">

    <input type="text" name="persone" size="5" value="'; echo $Xpersone; echo '"></td>
    <td width="144" height="64" colspan="2" rowspan="1" valign="top" align="left" xpos="256" content csheight="32">
    <font size="2">Data e ora del ritiro</font></td>
    <td width="120" height="64" colspan="5" rowspan="1" valign="top" align="left" xpos="400">

    <input type="text" value="';

    if ($Xdata) {
    echo $Xdata;
    } else echo "gg/mm/aa - hh.mm";

    echo '" name="data" size="15"></td>
    <td width="60" height="64"></td>
    </tr>

    <!### AVVISO SENZA VARIAVILI ###>
    <tr height="64">
    <td width="1" height="64"><spacer type="block" width="1" height="64"></td>
    <td width="10" height="64"></td>
    <td width="10" height="64"></td>
    <td width="10" height="64"></td>
    <td width="490" height="64" colspan="16" rowspan="1" valign="top" align="left" xpos="30" content csheight="32">
    <center>
    <font size="2">Note: Richiediamo un preavviso minimo di 24 ore
    I prezzi variano dai 28 ai 48 €/Kg</font>
    </center>

    </td>
    <td width="60" height="64"></td>
    </tr>

    <!### NOME ###!>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="50" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="30" content csheight="32">
    <div align="right">
    <font size="2">Nome</font></div>
    </td>
    <td width="10" height="32"></td>
    <td width="420" height="32" colspan="11" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="nome" size="58" value="'; echo $Xnome; echo '"></td>

    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>

    <!### COGNOME ###!>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="50" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="30" content csheight="32">
    <div align="right">
    <font size="2">Cognome</font></div>
    </td>
    <td width="10" height="32"></td>
    <td width="420" height="32" colspan="11" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="cognome" size="58" value="'; echo $Xcognome; echo '"></td>

    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>


    <!### INDIRIZZO ##!>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="59" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="20" content csheight="32">
    <div align="right">
    <font size="2">Indirizzo</font></div>
    </td>
    <td width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="420" height="32" colspan="11" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="indirizzo" size="58" value="'; echo $Xindirizzo; echo '"></td>

    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>

    <!### CITTA E PROVINCIA ####!>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="50" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="30" content csheight="32">
    <div align="right">
    <font size="2">Citt&agrave;</font></div>
    </td>
    <td width="10" height="32"></td>
    <td width="166" height="32" colspan="5" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="citta" size="21" value="'; echo $Xcitta; echo '"></td>

    <td width="84" height="32"></td>
    <td width="70" height="32" colspan="2" rowspan="1" valign="top" align="left" xpos="340" content csheight="32">
    <div align="right">
    <font size="2">Provincia</font></div>
    </td>
    <td width="9" height="32"></td>
    <td width="91" height="32" colspan="2" rowspan="1" valign="top" align="left" xpos="419">

    <input type="text" name="provincia" size="11" value="'; echo $Xprovincia; echo '"></td>


    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>

    <!### PAESE E CAP ###!>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="10" height="32"></td>
    <td width="50" height="32" colspan="3" rowspan="1" valign="top" align="left" xpos="30" content csheight="32">
    <div align="right">
    <font size="2">Paese</font></div>
    </td>
    <td width="10" height="32"></td>
    <td width="166" height="32" colspan="5" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="paese" size="21" value="'; echo $Xpaese; echo '"></td>

    <td width="84" height="32"></td>
    <td width="70" height="32" colspan="2" rowspan="1" valign="top" align="left" xpos="340" content csheight="32">
    <div align="right">
    <font size="2">CAP</font></div>
    </td>
    <td width="9" height="32"></td>
    <td width="91" height="32" colspan="2" rowspan="1" valign="top" align="left" xpos="419">

    <input type="text" name="cap" size="11" value="'; echo $Xcap; echo '"></td>

    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>

    <!### TELEFONO ###!>
    <tr height="32">
    <td width="1" height="32"><spacer type="block" width="1" height="32"></td>
    <td width="10" height="32"></td>
    <td width="70" height="32" colspan="5" rowspan="1" valign="top" align="left" xpos="10" content csheight="32">
    <div align="right">
    <font size="2">Telefono</font></div>
    </td>
    <td width="10" height="32"></td>
    <td width="420" height="32" colspan="11" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="telefono" size="58" value="'; echo $Xtelefono; echo '"></td>

    <td width="10" height="32"></td>
    <td width="60" height="32"></td>
    </tr>

    <!### E MAIL ###!>
    <tr height="48">
    <td width="1" height="48"><spacer type="block" width="1" height="48"></td>
    <td width="10" height="48"></td>
    <td width="70" height="48" colspan="5" rowspan="1" valign="top" align="left" xpos="10" content csheight="32">
    <div align="right">
    <font size="2">E-Mail</font></div>
    </td>
    <td width="10" height="48"></td>
    <td width="420" height="48" colspan="11" rowspan="1" valign="top" align="left" xpos="90">

    <input type="text" name="email" size="58" value="'; echo $Xemail; echo '"></td>

    <td width="10" height="48"></td>
    <td width="60" height="48"></td>
    </tr>

    <tr height="64">
    <td width="1" height="64"><spacer type="block" width="1" height="64"></td>
    <td width="10" height="64"></td>
    <td width="10" height="64"></td>
    <td width="10" height="64"></td>
    <td width="2" height="64"></td>
    <td width="47" height="64"></td>
    <td width="1" height="64"></td>
    <td width="10" height="64"></td>
    <td width="420" height="64" colspan="11" rowspan="1" valign="top" align="left" xpos="90" content csheight="32">
    <center>
    L\'ordine e il relativo importo Vi verranno confermati telefonicamente.</center>
    </td>
    <td width="10" height="64"></td>
    <td width="60" height="64"></td>
    </tr>

    continua...

  5. #5
    e finisce...

    <!#### REIMPOSTA E INVIA >
    <tr height="51">
    <td width="1" height="51"><spacer type="block" width="1" height="51"></td>
    <td width="10" height="51"></td>
    <td width="10" height="51"></td>
    <td width="10" height="51"></td>
    <td width="2" height="51"></td>
    <td width="47" height="51"></td>
    <td width="1" height="51"></td>
    <td width="10" height="51"></td>
    <td width="70" height="51" colspan="2" rowspan="1" valign="top" align="left" xpos="90">

    <input type="submit" value="Invia" name="Invia"></td>

    <td width="10" height="51"></td>
    <td width="1" height="51"></td>
    <td width="85" height="51"></td>
    <td width="84" height="51"></td>
    <td width="60" height="51"></td>
    <td width="10" height="51"></td>
    <td width="9" height="51"></td>
    <td width="11" height="51"></td>
    <td width="80" height="51" colspan="1" rowspan="1" valign="top" align="left" xpos="430"><input type="reset" value="Reimposta"></td>
    <td width="10" height="51"></td>
    <td width="60" height="51"></td>
    </tr>
    </table>
    </form>
    </body>
    </center>
    </html>

    ';
    ?>

    Io devo modificare solo due frasi presenti nel codice.
    Per la precisione, la frase:"I prezzi variano dai 28 ai 48 €/Kg" diventerà "I prezzi variano dai 28 ai 53 €/Kg" e la frase:"L\'ordine e il relativo importo Vi verranno confermati telefonicamente" diventerà "L\'ordine e il relativo importo Vi verranno confermati telefonicamente o via mail"

    Confido in voi

  6. #6
    Utente di HTML.it L'avatar di nicola75ss
    Registrato dal
    Nov 2004
    Messaggi
    12,922
    Non mi sembra un problema di PHP.
    Immagino che usi un editor tipo dreamweaver o qs'altro.
    Anche nel caso usi blocco note avrai a disposizione nel menù modifica le opzioni trova e sostituisci.
    Cerca il tuo testo e cambialo.

  7. #7
    Utente bannato
    Registrato dal
    Sep 2005
    Messaggi
    905
    anche dreamweaver lo fa...

  8. #8
    Ma infatti come dicevo prima, io l'ho fatto. Ho sostituito il testo ma se pubblico mi butta fuori sempre lo stesso. Alché, da ignorante in php, ho pensato che magari era legato a quel tipo di file.
    Ho bisogno di fare una modifica stupida e non riesco a capire perché non va.
    Tra l'altro ora ho riprovato a pubblicare e non so come mai non la apre nemmeno più.
    Comunque sto utilizzando dreamweaver. Mi sorgeva un dubbio.....ma il php funziona allo stesso modo come pubblicazione? L'unica cosa a cui potevo pensare, da ignorante, è solo questa....

  9. #9
    Datemi una mano........questo cliente mi sta consumando e con il php non sono veramente capace. Anche se qui sembra un problema che non c'entra nulla con il php, però non capisco perché non me lo modifica lo stesso.......

  10. #10
    Utente bannato
    Registrato dal
    Sep 2005
    Messaggi
    905
    allora dicci dove hai preso lo script che vediamo tutti i file

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.