470,815 Members | 1,300 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Form help

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>&nbsp; </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>&nbsp;</p>
</body>
</html>
Jul 17 '05 #1
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>&nbsp; </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>&nbsp;</p>
</body>
</html>


--
MeerKat

Jul 17 '05 #2
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>&nbsp; </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>&nbsp;</p>
</body>
</html>

--
Greetz,
De Snor
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tonya | last post: by
10 posts views Thread by Gregory A Greenman | last post: by
4 posts views Thread by Dave Guenthner | last post: by
13 posts views Thread by Lee Newson | last post: by
9 posts views Thread by mohit.akl | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.