hypostasis
Well-known member
- 23 April 2006
- 202
- 23
hallo,
ich habe eine url, die sieht in etwa so aus:
im php code sieht das ganze so aus:
der teil mit dem formular ist wichtig.
wieso funktioniert das so nicht ?
im html code sieht das ganze eigentlich korrekt aus:
kann man überhaupt über ein "get"-formular post ausführen ?
das schlimme ist aber, wenn ich auch die action="" irgendwo anders ausübe: passier nichts.
wieso ?
wäre klasse, wenn mir jemand helfen könnte.
ich habe eine url, die sieht in etwa so aus:
Code:
https://www.xy.cc/index.php.php?seite=aktiv&upd_id=30
im php code sieht das ganze so aus:
PHP:
if ( $seite == "aktiv" ){
$idcheck = $_GET['id'];
$idupd = $_GET['upd_id'];
if ( $idupd != "") {
// Bearbeitung der Felder $idupd
//¨berür¨fung schaldbutton
if (isset($_POST['submit'])) {
//ausführen UPDATE
//DIESER TEIL WIRD NICHT !! AUSGEFÜHRT.. WIESO ??
//DIESER TEIL WIRD NICHT !! AUSGEFÜHRT.. WIESO ??
include('footer.inc.php');
exit();
}
$sqlab = "SELECT * FROM firmendaten WHERE id LIKE '$idupd'";
$res = mysql_query($sqlab);
$dsatz = mysql_fetch_assoc($res);
echo '
<div class="headline>Bearbeiten:</div><br><br>
<form action="index.php.php?seite=aktiv&upd_id='.$idupd.'" method="post">
Id: ' . $dsatz["id"] .' <br>
Email: <input name="email" type="text" value=" ' . $dsatz["email"] .'" /> <br>
Firma: <input name="firma type="text" value=" ' . $dsatz["firma"] .'" /> <br>
Adresse: <input name="adresse" type="text" value=" ' . $dsatz["adresse"] .'" /> <br>
Plz: <input name="plz" type="text" value=" ' . $dsatz["plz"] .'" /> <br>
Ort: <input name="ort" type="text" value=" ' . $dsatz["ort"] .'" /> <br>
Telefon: <input name="telefon" type="text" value=" ' . $dsatz["telefon"] .'" /> <br>
Handy: <input name="handy" type="text" value=" ' . $dsatz["handy"] .'" /> <br>
IP: ' . $dsatz["ip"] .' <br>
Aktiv: ' . $dsatz["aktiv"] .' <br>
<input type="submit" name="submit" value="submit" />
</form>
';
echo "Wurde ausgeführt ! <a href='index.php?seite=neue'>Hier geht es zurück.</a>";
include('footer.inc.php');
exit();
}
usw..
der teil mit dem formular ist wichtig.
wieso funktioniert das so nicht ?
im html code sieht das ganze eigentlich korrekt aus:
HTML:
<div class="headline>Bearbeiten:</div><br><br>
<form action="index.php.php?seite=aktiv&upd_id=30" method="post">
Id: 30 <br>
Email: <input name="email" type="text" value=" asfdaaaaaa" /> <br>
Firma: <input name="firma type="text" value=" sadf" /> <br>
Adresse: <input name="adresse" type="text" value=" asfd" /> <br>
Plz: <input name="plz" type="text" value=" afds" /> <br>
Ort: <input name="ort" type="text" value=" sadf" /> <br>
Telefon: <input name="telefon" type="text" value=" asfd" /> <br>
Handy: <input name="handy" type="text" value=" asdf" /> <br>
IP: 124.22.62.21 <br>
Aktiv: 1 <br>
<input type="submit" name="submit" value="submit" />
</form>
kann man überhaupt über ein "get"-formular post ausführen ?
das schlimme ist aber, wenn ich auch die action="" irgendwo anders ausübe: passier nichts.
wieso ?
wäre klasse, wenn mir jemand helfen könnte.