Re: problem mit datei feld - baseportal Forum - Web-Anwendungen einfach, schnell, leistungsfähig!
baseportal
English - Deutsch "Es gibt keine dummen Fragen - jeder hat einmal angefangen"

 baseportal-ForumDie aktuellsten 10, 30, 50, 100 Einträge anzeigen.  

 
 Ausgewählter Eintrag: Zur Liste 
    Beitrag von sascha (539 Beiträge) am Freitag, 3.Oktober.2003, 00:41.
    Re: problem mit datei feld

      sorry,

      dieser code=perl scheint immer eine fehlermeldung zu erzeugen:
      [error (loop): glob trapped by operation mask at (eval 23) line 13. ]

      liegt es vielleicht daran, wie die daten in das template übergeben werden?

      sascha


    Antworten

 Alle Einträge zum Thema: Zur Liste 
    Beitrag von sascha (539 Beiträge) am Donnerstag, 2.Oktober.2003, 13:26.
    problem mit datei-feld upload

      hallo,

      ich probier gerade mit dem datei-feld rum, was auch eigentlich klappt.

      das upload funktioniert auch, doch wenn man "kein Bild" auswählt, erscheint an der stelle nur ein "X".

      wie kriege ich das denn hin, das ein "musterbild", was irgendwo im netz steht an der "Bildstelle" erscheint, wenn der user "kein Bild" auswählt.
      wenn er ein bild hochlädt, ist das ja kein problem.

      Bild:</td>
      <td><font size=2 face=arial,helvetica>
      <input type=radio name="_filec_Bild=" value=1>
      Keine Datei <input type=radio name="_filec_Bild=" value=2 checked>
      Neue Datei:<br>
      <input name="Bild:=" type="file" size=30 onfocus="a=this.form.elements; for(i=0; i<a.length; i++) if(a[i].name==this.name) break; a[i-1].checked=1;">
      

      danke schonmal !

      sascha

     Antworten

    Beitrag von mk (966 Beiträge) am Donnerstag, 2.Oktober.2003, 15:55.
    Re: problem mit datei-feld upload

      Antwort kann ich dir heute Abend geben.

     Antworten

    Beitrag von mk (966 Beiträge) am Donnerstag, 2.Oktober.2003, 17:20.
    Re: problem mit datei-feld upload

      in perl geht das einfach:
      out "<p><img src='http://www.xyz.de/bp-files/$Bild' height='70' alt='$Bild'></p>" if $Bild ne "" ;
      out "Noch kein Foto eingetragen.<br>" if $Bild eq "" ;
      

      statt dem Text kannst du auch ein Bild eintragen

      das Problem mit dem Datei feld findest du aber häufig hier im Forum.
      auch mit Lösungen von mir.

     Antworten

    Beitrag von sascha (539 Beiträge) am Donnerstag, 2.Oktober.2003, 22:38.
    @mk wg. problem mit datei feld

      hallo mk,

      habe das forum durchforstet und dachte auch ein paarmal, des rätsels lösung gefunden zu haben.

      wie heißt es: man soll nicht denken :-(

      wie von dir auch im formum beschrieben habe ich folgendes getan:

      stattt des
      <img src=\"http://www.hotel-plan.com/files/$_raw{Bild} \"width=\"250\" height=\"188\">,
      

      was eigentlich in der ausgabeseite steht und auch funktioniert

      habe ich

      <perl>
      out "<p><img src='http://www.hotel-plan.com/files/$_raw{Bild}' width='249' alt='' ></p>" if $_raw{Bild} ne "" ;
      out "<img src='http://www.hotel-plan.com/files/gutscheinbildmuster.jpg'>" if $_raw{Bild} eq "";
      </perl> reingepackt.
      

      doch im <loop> gibt das nur nr fehlermeldung.

      im grunde soll doch nur das bild "gutscheinbildmuster.jpg erscheinen, wenn bei der eingabe kein bild ausgewählt wurde.

      sascha

     Antworten

    Beitrag von sascha (539 Beiträge) am Donnerstag, 2.Oktober.2003, 23:15.
    problem mit datei feld

      hab`s jetzt mal mit <loop code=perl> probiert, klappt aber auch nicht.
      verwechsel ich vielleicht immer $_raw mit nur $Bild?

      sascha

     Antworten

    Beitrag von sascha (539 Beiträge) am Freitag, 3.Oktober.2003, 00:07.
    problem mit datei feld

      hallo,

      wenn ich <loop code=perl ... nehme, kommt immer eine fehlermeldung:
      [error (loop): glob trapped by operation mask at (eval 73) line 3. ]

      ich muß aber doch im <loop> den code=perl setzen, damit ich das out...
      innerhalb des <loop> ausführen kann.

      oder ??!??!?
      ich raffs einfach nicht :-(
      vielleicht zu spät?

      sascha


      <loop db=daten code=perl>
      
      .....

      out "<p><img src='http://www.hotel-plan.com/files/$Bild' width='249' alt=''></p>" if $Bild ne "" ;
      out "<img src='http://www.hotel-plan.com/files/gutscheinbildmuster.jpg'>" if $Bild eq "";
      .....</loop>
      

     Antworten

    Beitrag von Christoph Bergmann (8110 Beiträge) am Freitag, 3.Oktober.2003, 00:18.
    Re: problem mit datei feld

      also an dem code kann der fehler eigentlich nich liegen...

      <loop db=daten code=perl>
      if(length($Bild)>2)
      {
        out "<p><img src='http://www.hotel-plan.com/files/$Bild' width='249' alt=''></p>";
      } else
      {
        out "<img src='http://www.hotel-plan.com/files/gutscheinbildmuster.jpg'>";
      }
      </loop>
      

      sollte funzen... (das mit dem length deshalb, weil manchmal ein return mit reinrutscht... so is man auf der sicheren seite)

     Antworten

    Beitrag von sascha (539 Beiträge) am Freitag, 3.Oktober.2003, 00:41.
    Re: problem mit datei feld

      sorry,

      dieser code=perl scheint immer eine fehlermeldung zu erzeugen:
      [error (loop): glob trapped by operation mask at (eval 23) line 13. ]

      liegt es vielleicht daran, wie die daten in das template übergeben werden?

      sascha

     Antworten

    Beitrag von Christoph Bergmann (8110 Beiträge) am Freitag, 3.Oktober.2003, 02:05.
    Re: problem mit datei feld

      Nein, das kann nich sein ;-)

      Kopiere mal den kompletten entsprechenden Teil aus Deiner Seite hier rein - da is irgendwas drin, was den Fehler verursacht, der obige Code _muss_ Ok sein (oder ich sollte Tischler lernen oder so) ;-)

     Antworten

    Beitrag von sascha (539 Beiträge) am Sonntag, 5.Oktober.2003, 22:19.
    @CB - problem mit datei feld

      hallo christoph,

      hier mein <loop> aus dem template: v_details / rechte sind auf "ausführen" gesetzt.


      <loop db=gutscheinidee code=perl>
      
          <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY>         <TR VALIGN=TOP ALIGN=LEFT>             <TD HEIGHT=10></TD>         </TR>         <TR VALIGN=TOP ALIGN=LEFT>             <TD WIDTH=702>                 <TABLE ID="Tabelle2" BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="100%">                     <TR>                         <TD COLSPAN=3 BGCOLOR="#0C2545">                             <P><IMG ID="Bild148" HEIGHT=14 WIDTH=14 SRC=" http://www.gutscheinidee.de/PF.jpg" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT COLOR="#FFCC00" SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Gutscheinangebot: $Anbieter</B></FONT><B></B></TD>                     </TR>                     <TR>                         <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5" HEIGHT=19>                             <P ALIGN=LEFT><IMG ID="Bild138" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Kategorie</B></FONT><B></B></TD>                         <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">                             <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Kategorie</FONT></P>                         </TD>                         <TD ROWSPAN=6 VALIGN=TOP WIDTH=250 BGCOLOR="#FEFFFF">                             <P ALIGN=LEFT> if(length($Bild)>2) { out "<p><img src='http://www.hotel-plan.com/files/$Bild' width='249' alt=''></p>"; } else {  out "<img src='http://www.hotel-plan.com/files/gutscheinbildmuster.jpg'>";

      }

                         </TR>
                          <TR>
                              <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5">
                                  <P ALIGN=LEFT><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"><IMG ID="Bild139" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Rubrik</B></FONT><B></B></TD>
                              <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
                                  <P ALIGN=LEFT><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Rubrik</FONT></P>
                              </TD>
                          </TR>
                          <TR>
                              <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5">
                                  <P ALIGN=LEFT><IMG ID="Bild141" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;</B></FONT><FONT COLOR="#003366" SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>Preis</B></FONT><B></B></TD>
                              <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
                                  <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Preis</FONT></P>
                              </TD>
                          </TR>
                          <TR>
                              <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5" HEIGHT=16>
                                  <P ALIGN=LEFT><IMG ID="Bild146" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Gutscheintitel</B></FONT><B></B></TD>
                              <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
                                  <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Gutscheintitel</FONT></P>
                              </TD>
                          </TR>
                          <TR>
                              <TD COLSPAN=2 BGCOLOR="#0C2545">
                                  <P ALIGN=LEFT><IMG ID="Bild147" HEIGHT=14 WIDTH=14 SRC=" http://www.gutscheinidee.de/PF.jpg" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT COLOR="#FFCC00" SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Gutscheininhalt</B></FONT><B></B></TD>
                          </TR>
                          <TR>
                              <TD COLSPAN=2 VALIGN=TOP BGCOLOR="#FEFFFF">
                                  <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Beschreibung</FONT></P>
                                  <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Zusatzinfo</FONT></P>
                              </TD>
                          </TR>
                          <TR>
                              <TD COLSPAN=3 BGCOLOR="#0C2545">
                                  <P ALIGN=CENTER><P ALIGN=CENTER><a href='http://www.hotel-plan.com/baseportal?htx=/hotel-plan.com/gutscheinidee/v_bestell&cmd=all&Id==$_id'>
      <FONT COLOR="#FFCC00" SIZE="-1" FACE="Verdana"><B>BESTELLFORMULAR</B></FONT></a>
      <B></B></P></FONT></P>
                                  <P ALIGN=CENTER><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><a class="tatext" HREF='javascript:history.back();'><FONT COLOR="#FFCC00" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">zurück</FONT></a><B></B></P>
      
                              </TD>                     </TR>                 </TABLE>             </TD>         </TR>     </TABLE>     </CENTER>
      </loop>

     Antworten

    Beitrag von Rolf Schubert (63 Beiträge) am Montag, 6.Oktober.2003, 15:06. WWW: www.chile-web.de
    Re: @CB - problem mit datei feld

      Hallo sascha

      Da du im loop perl code hast mußt du das html via out <<EOF; - html - EOF ausgeben. habe es mal eingefügt.
      Jetzt sollte es eigentlich klappen.

      Gruß Rolf

      <loop db=gutscheinidee code=perl>
      

      out <<EOF;

      <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY>
      <TR VALIGN=TOP ALIGN=LEFT>
      <TD HEIGHT=10></TD>
      </TR>
      <TR VALIGN=TOP ALIGN=LEFT>
      <TD WIDTH=702>
      <TABLE ID="Tabelle2" BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="100%">
      <TR>
      <TD COLSPAN=3 BGCOLOR="#0C2545">
      <P><IMG ID="Bild148" HEIGHT=14 WIDTH=14 SRC=" http://www.gutscheinidee.de/PF.jpg" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT COLOR="#FFCC00" SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Gutscheinangebot: $Anbieter</B></FONT><B></B></TD>
      </TR>
      <TR>
      <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5" HEIGHT=19>
      <P ALIGN=LEFT><IMG ID="Bild138" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Kategorie</B></FONT><B></B></TD>
      <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
      <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Kategorie</FONT></P>
      </TD>
      <TD ROWSPAN=6 VALIGN=TOP WIDTH=250 BGCOLOR="#FEFFFF">
      <P ALIGN=LEFT>
       
      EOF
      if(length($Bild)>2)
      {
      out "<p><img src='http://www.hotel-plan.com/files/$Bild' width='249' alt=''></p>";
      } else
      {
      out "<img src='http://www.hotel-plan.com/files/gutscheinbildmuster.jpg'>";
      }
      

      out <<EOF;
      </TR>
      <TR>
      <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5">
      <P ALIGN=LEFT><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"><IMG ID="Bild139" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Rubrik</B></FONT><B></B></TD>
      <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
      <P ALIGN=LEFT><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Rubrik</FONT></P>
      </TD>
      </TR>
      <TR>
      <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5">
      <P ALIGN=LEFT><IMG ID="Bild141" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;</B></FONT><FONT COLOR="#003366" SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>Preis</B></FONT><B></B></TD>
      <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
      <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Preis</FONT></P>
      </TD>
      </TR>
      <TR>
      <TD VALIGN=TOP WIDTH=158 BGCOLOR="#E5E5E5" HEIGHT=16>
      <P ALIGN=LEFT><IMG ID="Bild146" HEIGHT=11 WIDTH=11 SRC=" http://www.gutscheinidee.de/pfeil.gif" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Gutscheintitel</B></FONT><B></B></TD>
      <TD VALIGN=TOP WIDTH=275 BGCOLOR="#FEFFFF">
      <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Gutscheintitel</FONT></P>
      </TD>
      </TR>
      <TR>
      <TD COLSPAN=2 BGCOLOR="#0C2545">
      <P ALIGN=LEFT><IMG ID="Bild147" HEIGHT=14 WIDTH=14 SRC=" http://www.gutscheinidee.de/PF.jpg" VSPACE=0 HSPACE=0 ALIGN="MIDDLE" BORDER=0 ALT=""><FONT COLOR="#FFCC00" SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>&nbsp;Gutscheininhalt</B></FONT><B></B></TD>
      </TR>
      <TR>
      <TD COLSPAN=2 VALIGN=TOP BGCOLOR="#FEFFFF">
      <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Beschreibung</FONT></P>
      <P ALIGN=LEFT><FONT COLOR="#003366" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">$Zusatzinfo</FONT></P>
      </TD>
      </TR>
      <TR>
      <TD COLSPAN=3 BGCOLOR="#0C2545">
      <P ALIGN=CENTER><P ALIGN=CENTER><a href='http://www.hotel-plan.com/baseportal?htx=/hotel-plan.com/gutscheinidee/v_bestell&cmd=all&Id==$_id'>
      <FONT COLOR="#FFCC00" SIZE="-1" FACE="Verdana"><B>BESTELLFORMULAR</B></FONT></a>
      <B></B></P></FONT></P>
      <P ALIGN=CENTER><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><a class="tatext" HREF='javascript:history.back();'><FONT COLOR="#FFCC00" SIZE="-2" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">zurück</FONT></a><B></B></P>
      </TD>
      </TR>
      </TABLE>
      </TD>
      </TR>
      </TABLE>
      </CENTER>
      EOF
      </loop>
      

     Antworten

    Beitrag von sascha (539 Beiträge) am Montag, 6.Oktober.2003, 21:04.
    Re: @CB - problem mit datei feld

     Antworten

    Beitrag von Rolf Schubert (63 Beiträge) am Montag, 6.Oktober.2003, 21:57. WWW: www.chile-web.de
    Re: @CB - problem mit datei feld

      Da du mit loop arbeitest, müste es eigentlich mit $_raw{Bild} anstelle von $Bild gehen.

      Muste mal testen.

      Gruß Rolf

     Antworten

    Beitrag von sascha (539 Beiträge) am Montag, 6.Oktober.2003, 22:30.
    Re: @CB - problem mit datei feld

      hallo rolf,

      thanx :-)
      das mistige raw wars natürlich!

      danke
      sascha

     Antworten

    Beitrag von sascha (539 Beiträge) am Freitag, 3.Oktober.2003, 00:50.
    @CB problem mit datei feld

      erstmal danke für den versuch!

      werde mir jetzt erstmal am wochende "frei" nehmen und die stuttgarter wasen besuchen.
      3 tage ohne lappi & www! falls ich das durchstehe, werde ichs mit meinem problem am montag nochmal versuchen.

      schönes wochenende :-))

      sascha

     Antworten


     
 Liste der Einträge von 34650 bis 34800:Einklappen Zur Eingabe 
Neueste Einträge << 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | Neuere Einträge < Zur Eingabe  > Ältere Einträge | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 >> Älteste Einträge


Zurück zur Homepage

© baseportal.de. Alle Rechte vorbehalten. Nutzungsbedingungen



powered in 0.06s by baseportal.de
Erstellen Sie Ihre eigene Web-Datenbank - kostenlos!