I can't see the requested variables in my form - > HOW??????????
<html>
<head>
<title>Registratie Uitrukken Brandweer Harderwijk</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#AA0009" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF"
alink="#FFFFFF">
<?php
mysql_connect("localhost","username","password");
mysql_select_db("scannerharderwijk_nl_db");
if ($_POST['Submit']) {
$id=$_POST['id'];
$query="SELECT * FROM scanner WHERE id='id'";
$sql=mysql_query($query);
while ($obj=mysql_fetch_object($sql))
{
$maand = $obj["maand"];
$datum = $obj["datum"];
$omschrijving = $obj["omschrijving"];
$locatie = $obj["locatie"];
$blusploeg = $obj["blusploeg"];
}
}
?>
<form name="form1" method="post" action="updatenow.php">
<p> </p>
<p><font face="Geneva, Arial, Helvetica, sans-serif">
<input name="id" type="text" id="id" value="<?=$id;?>">
ID</font> </p>
<p> <font face="Geneva, Arial, Helvetica, sans-serif">
<input name="maand" type="text" id="maand" value="<?=$maand;?>">
Maand </font></p>
<p> <font face="Geneva, Arial, Helvetica, sans-serif">
<input name="datum" type="text" id="datum" value="<?=$datum;?>">
Datum + tijd (DD-MM HH:MM)</font></p>
<p> <font face="Geneva, Arial, Helvetica, sans-serif">
<input name="omschrijving" type="text" id="omschrijving"
value="<?=$omschrijving;?>">
Omschrijving </font></p>
<p> <font face="Geneva, Arial, Helvetica, sans-serif">
<input name="locatie" type="text" id="locatie" value="<?=$locatie?>">
Locatie </font></p>
<p> <font face="Geneva, Arial, Helvetica, sans-serif">
<input name="$blusploeg" type="text" id="blusploeg"
value="<?=$blusploeg;?>">
Blusploeg / Duikploeg</font></p>
<p>
<input type="submit" name="Submit" value="Verander">
</p>
</form>
<p> </p>
</body>
</html> 2 2018
FiremanSAM wrote: I can't see the requested variables in my form - > HOW??????????
<html> <head> <title>Registratie Uitrukken Brandweer Harderwijk</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body bgcolor="#AA0009" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <?php mysql_connect("localhost","username","password"); mysql_select_db("scannerharderwijk_nl_db"); if ($_POST['Submit']) { $id=$_POST['id'];
$query="SELECT * FROM scanner WHERE id='id'";
try:
... WHERE id='$id'";
$sql=mysql_query($query); while ($obj=mysql_fetch_object($sql)) { $maand = $obj["maand"]; $datum = $obj["datum"]; $omschrijving = $obj["omschrijving"]; $locatie = $obj["locatie"]; $blusploeg = $obj["blusploeg"];
} } ?> <form name="form1" method="post" action="updatenow.php"> <p> </p> <p><font face="Geneva, Arial, Helvetica, sans-serif"> <input name="id" type="text" id="id" value="<?=$id;?>"> ID</font> </p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="maand" type="text" id="maand" value="<?=$maand;?>"> Maand </font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="datum" type="text" id="datum" value="<?=$datum;?>"> Datum + tijd (DD-MM HH:MM)</font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="omschrijving" type="text" id="omschrijving" value="<?=$omschrijving;?>"> Omschrijving </font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="locatie" type="text" id="locatie" value="<?=$locatie?>"> Locatie </font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="$blusploeg" type="text" id="blusploeg" value="<?=$blusploeg;?>"> Blusploeg / Duikploeg</font></p> <p> <input type="submit" name="Submit" value="Verander"> </p> </form> <p> </p> </body> </html>
--
MeerKat
On Sun, 21 Sep 2003 20:09:42 +0200, "FiremanSAM" <fi********@co.uk>
wrote: I can't see the requested variables in my form - > HOW??????????
<html> <head> <title>Registratie Uitrukken Brandweer Harderwijk</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
<body bgcolor="#AA0009" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <?php mysql_connect("localhost","username","password" ); mysql_select_db("scannerharderwijk_nl_db"); if ($_POST['Submit']) { $id=$_POST['id'];
$query="SELECT * FROM scanner WHERE id='id'";
shoult be: $query="SELECT * FROM scanner WHERE id=$id"; $sql=mysql_query($query); while ($obj=mysql_fetch_object($sql)) { $maand = $obj["maand"]; $datum = $obj["datum"]; $omschrijving = $obj["omschrijving"]; $locatie = $obj["locatie"]; $blusploeg = $obj["blusploeg"];
} } ?> <form name="form1" method="post" action="updatenow.php"> <p> </p> <p><font face="Geneva, Arial, Helvetica, sans-serif"> <input name="id" type="text" id="id" value="<?=$id;?>"> ID</font> </p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="maand" type="text" id="maand" value="<?=$maand;?>"> Maand </font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="datum" type="text" id="datum" value="<?=$datum;?>"> Datum + tijd (DD-MM HH:MM)</font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="omschrijving" type="text" id="omschrijving" value="<?=$omschrijving;?>"> Omschrijving </font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="locatie" type="text" id="locatie" value="<?=$locatie?>"> Locatie </font></p> <p> <font face="Geneva, Arial, Helvetica, sans-serif"> <input name="$blusploeg" type="text" id="blusploeg" value="<?=$blusploeg;?>"> Blusploeg / Duikploeg</font></p> <p> <input type="submit" name="Submit" value="Verander"> </p> </form> <p> </p> </body> </html>
--
Greetz,
De Snor This discussion thread is closed Replies have been disabled for this discussion. Similar topics
1 post
views
Thread by Randell D. |
last post: by
|
4 posts
views
Thread by Tonya |
last post: by
|
10 posts
views
Thread by Gregory A Greenman |
last post: by
|
reply
views
Thread by Pat Patterson |
last post: by
|
25 posts
views
Thread by Lyn |
last post: by
|
4 posts
views
Thread by Dave Guenthner |
last post: by
|
10 posts
views
Thread by Kathy Burke |
last post: by
|
13 posts
views
Thread by Lee Newson |
last post: by
|
9 posts
views
Thread by mohit.akl |
last post: by
|
9 posts
views
Thread by MikeB |
last post: by
| | | | | | | | | | |