Avatar billede kimallan Nybegynder
19. februar 2002 - 20:37 Der er 2 kommentarer og
1 løsning

Hente en data ned

Hej..
Jeg har dette script:


<form action = "http://www.dht.dk/webhotel/support/formmail/formmail.pl" method=POST>
<INPUT TYPE="HIDDEN" NAME="recipient" VALUE="Stationen@e-firma.dk">
<INPUT TYPE="HIDDEN" NAME="redirect" VALUE = "http://www.power-zide.f2s.com/">
                <input type="hidden" name="Pakke1" value="<?php echo $Pakke1;?>">
                <input type="hidden" name="Pakke1_" value="<?php echo $Pakke1_;?>">
                <input type="hidden" name="Pakke2" value="<?php echo $Pakke2;?>">
                <input type="hidden" name="Pakke2_" value="<?php echo $Pakke2_;?>">
                <input type="hidden" name="Pakke3" value="<?php echo $Pakke3;?>">
                <input type="hidden" name="Pakke3_" value="<?php echo $Pakke3_;?>">
                <input type="hidden" name="Pakkemulti" value="<?php echo $Pakkemulti;?>">
                <input type="hidden" name="Pakkemulti_" value="<?php echo $Pakkemulti_;?>">
                <input type="hidden" name="Firma" value="<?php echo $Firma;?>">
                <input type="hidden" name="Kontaktperson" value="<?php echo $Kontaktperson;?>">
                <input type="hidden" name="Adresse" value="<?php echo $Adresse;?>">
                <input type="hidden" name="Adresse2" value="<?php echo $Adresse2;?>">
                <input type="hidden" name="Postnrby" value="<?php echo $Postnrby;?>">
                <input type="hidden" name="Telefonnummer" value="<?php echo $Telefonnummer;?>">
                <input type="hidden" name="E_mail" value="<?php echo $E_mail;?>">
               

                  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0" bordercolor="#111111" width="100%" id="AutoNumber20" height="184">
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                   
                   
                   
                    <font face="tahoma"><small><span class="linkfarveblaa"><font face="tahoma" size="-1"><small><font face="SF Sans Serif"><b><font size="2">Faktureringsoplysninger</font></b><font size="2">
                    </font></font></small></font></span></small></font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">Firma:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                   
                  <?php
echo $firma;
?></td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">Kontaktperson:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                    <?php
echo $kontaktperson;
?></td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">Adresse:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                  <?php
echo $adresse;
?> </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">Adresse2:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                  <?php
echo $adresse2;
?> </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">Postnr. &amp; by:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                  <?php
echo $postnr_by;
?></td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">Telefonnummer:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                <?php
echo $telefonnummer;
?></td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    <font face="SF Sans Serif" size="1">E-mail:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                  <?php
echo $e_mail;
?></td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="18">
                    </td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="18">
                  </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                   
                    <span class="linkfarveblaa"><b><font face="SF Sans Serif" style="font-size: smaller">Pakke</font></b></span><font face="tahoma"><small><span class="linkfarveblaa"><font face="SF Sans Serif" size="-1"><b><small><font size="2">oplysninger</font></small>
                    </b></font></span></small></font>
                    </td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                    <font face="SF Sans Serif" size="1">Servicepakke:</font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                    </td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                   
                   
                    <font face="tahoma"><small><span class="linkfarveblaa"><font face="MS Sans Serif" size="-1"><b><small><font size="2">Priser (med forbehold for fejl)</font></small>
                    </b></font></span></small></font>
                    </td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                   
                    <span class="linkfarveblaa"><font face="MS Sans Serif" size="1">Servicepakke:</font></span></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                    <font face="MS Sans Serif" size="1"><b>Samlet:</b></font></td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                  <tr>
                    <td width="44%" style="border-left: medium none #111111; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: medium none #111111" height="16">
                    </td>
                    <td width="56%" style="border-left-style: none; border-left-width: medium; border-right: medium none #111111; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" height="16">
                    </td>
                  </tr>
                </table>
                  <input type="submit" value="Afgiv Bestilling" style="font-family: MS Sans Serif; font-size: 10px; color: #000000; background-color: #FFFFFF">
</form>



Så der hvor der står pris, der skal den skrive den pris at dan valgte varer er.

F.eks. hvis man har på de forrige side, valgt pakke 1 så koster den 99,- så skal den skrive det på den sidste side.. Jeg har mysql..
Avatar billede kimallan Nybegynder
19. februar 2002 - 20:37 #1
Den skal også lige regne moms med.. i et andet felt..
Avatar billede hathor Nybegynder
20. februar 2002 - 02:27 #2
den kode er fuldstændig uoverskuelig og ubrugelig for dit spørgsmål.

Skriv hvad det er du vil, og sæt kun din SQL og evt. PHP kode ind.
Avatar billede kimallan Nybegynder
21. februar 2002 - 18:19 #3
sfdfs
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Computerworld tilbyder specialiserede kurser i database-management

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester