Mailinglisten-Archive |
Hallo,
so funzt es!
Tausend Dank nochmal für alle Tips.
Schönen Gruß,
Christoph
----- Original Message -----
From: hans stumhofer <hans.stumhofer_(at)_addcom.de>
To: <php_(at)_php-center.de>
Sent: Thursday, September 07, 2000 2:19 PM
Subject: Re: [php] alert message
> z.B.
> $connect=mysql_connect("ipadresse","username","passwort");
> $erg3=mysql_select_db("dbname",$connect);
> $sql3="UPDATE table SET feldname1='1', feldname2=now() WHERE
> id='$phpvariable'";
> if ($erg3==1)
> {
> $erg3=mysql_db_query("dbname",$sql3);
> print("<title>irgendwas</title></head>\n");
> print("<meta http-equiv=\"refresh\"
> content=\"0;URL=startseite\">\n");
> print("<meta http-equiv=\"Content-Type\" content=\"text/html;
> charset=iso-8859-1\">\n");
> print("</head>\n<body bgcolor=\"#FFFFFF\"> </body>");
> } else {
> print ("<script language=\"javascript\">\n");
> print("alert (\"alerttext!\");");
> print("history.back(-2);");
> print("</script>");
> print("</head><body bgcolor=\"#FFFFFF\"></body></html>");
> }
>
> ps: geschickter waere es, die printanweisung in einer einzigen
> variablen zu halten und diese dann in einer print-anweisung
> auzugeben ....
>
> hoffe es hilft ;)
> hans
>
>
> > Gibt es eine ähnliche Funktion für PHP und wenn nicht, wie kann ich
> > Javascript mit PHP sinnvoll vereinen?
> >
> > Bin für jeden Tip dankbar.
> >
> > Gruß,
> >
> > Christoph
> >
> >
> > --
> > ** Durchgehend geöffnet: http://www.php-center.de **
> > Die PHP-Liste: mailto:php_(at)_php-center.de
> > http://infosoc.uni-koeln.de/mailman/listinfo/php
> >
>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_php-center.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php
>
php::bar PHP Wiki - Listenarchive