![]() |
Re: if($name=="") {xxxx} funktioniert nicht ?
Du übergibst mit POST und bekommst dies per GET?
Kann ich kaum glauben. |
Re: if($name=="") {xxxx} funktioniert nicht ?
Das hat er ja verbessert.
|
Re: if($name=="") {xxxx} funktioniert nicht ?
Zitat:
Delphi-Quellcode:
Die Seite von google wird aufgerufen ohne zu Klicken auf Senden !
<?php
$cona = @mysql_connect("localhost","xxxx","yyyy") or die(mysql_error()); $cona_db = mysql_select_db("xxxx", $cona) or die(mysql_error()); $name = $_GET['name']; $sql="SELECT * FROM tabelle1 WHERE name = '$name'"; $result = mysql_query($sql); if( mysql_num_rows( mysql_query( "select * from tabelle1 where name='$name'" ) ) <> 0 ) { $result = mysql_query("SELECT name FROM tabelle1 order by name DESC LIMIT 1") or die(mysql_error()); } ?> <html> <title>Test1</title> <body> <form action="#" method="post" name="formular"> <?php while($row = mysql_fetch_object($result)) { ?> <input type="text" name="name" size="50" value="<?php echo $_GET['name'];?>"></p> <tr> <td align="center"><input type="submit" name="submit" value="senen"></td> </tr> </table> if (empty($name)) { header ("Location: http://www.google.de"); } <?php } ?> </form> </body> </html> |
Re: if($name=="") {xxxx} funktioniert nicht ?
Verstehst Du, was Du schreibst?
Ich sag nur nochmal: POST != GET! |
Re: if($name=="") {xxxx} funktioniert nicht ?
Ich verweise nochmal auf #11.
|
Re: if($name=="") {xxxx} funktioniert nicht ?
Zitat:
|
Re: if($name=="") {xxxx} funktioniert nicht ?
Und das wissen wir ja alle :zwinker:
|
Re: if($name=="") {xxxx} funktioniert nicht ?
Dann wird ihm das Verständnis
![]() |
Re: if($name=="") {xxxx} funktioniert nicht ?
Mein 2. Fehler liegt nicht nur an Code sondern an mich selbst, da ich php-Frage in Delphi Forum gestellt habe :mrgreen:
vergesst es :witch: |
Re: if($name=="") {xxxx} funktioniert nicht ?
Nein, dass du nicht auf die Tipps hier hörst.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:52 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz