Jump to content


Photo

INSERT INTO


  • Please log in to reply
22 replies to this topic

#21 Deftone

Deftone
  • Members
  • PipPip
  • Member
  • 20 posts

Posted 26 July 2006 - 09:20 AM

Yes.
I use this two

<html>
<head>
<title>Race-uitslag toevoegen</title>
</head>
<body>
<font face=\"Arial\" size=\"2\">
<form action=\"race.php\" enctype=multipart/form-data>
<input type=\"hidden\" name=\"toevoegen\" value=\"ja\">
Wachtwoord:<br>
<input type=\"password\" size=\"30\" name=\"pwd\"><br>
Circuit:<br>
<input type=\"text\" size=\"30\" name=\"race\" value=\"$race\"><br>
Jaar:<br>
<input type=\"text\" size=\"30\" name=\"jaar\" value=\"$jaar\"><br>
Plaats:<br>
<input type=\"text\" size=\"30\" name=\"plaats\"><br>
Coureur:<br>
<input type=\"text\" size=\"30\" name=\"coureur\"><br>
Team:<br>
<input type=\"text\" size=\"30\" name=\"team\"><br>
Tijd / reden uitval:<br>
<input type=\"text\" size=\"30\" name=\"tijd\"><br>
Gefinished: <b>ja / nee</b><br>
<input type=\"text\" size=\"30\" name=\"finish\" value=\"$finish\"><br>
<input type=\"submit\" value=\"Verzenden\">
<input type=\"reset\" value=\"Invoer wissen\">
</form>
</body>
</html>
";
}

else {
?>

<html>
<head>
<title>Race-uitslag toevoegen</title>
</head>
<body>
<font face="Arial" size="2">
<form action="race.php" method="post">
<input type="hidden" name="toevoegen" value="ja">
Wachtwoord:<br>
<input type="password" size="30" name="pwd"><br>
Circuit:<br>
<input type="text" size="30" name="race"><br>
Jaar:<br>
<input type="text" size="30" name="jaar"><br>
Plaats:<br>
<input type="text" size="30" name="plaats"><br>
Coureur:<br>
<input type="text" size="30" name="coureur"><br>
Team:<br>
<input type="text" size="30" name="team"><br>
Tijd / reden uitval:<br>
<input type="text" size="30" name="tijd"><br>
Gefinished: <b>ja / nee</b><br>
<input type="text" size="30" name="finish"><br>
<input type="submit" value="Verzenden">
<input type="reset" value="Invoer wissen">
</form>
</body>
</html>


#22 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 26 July 2006 - 09:26 AM

gotto use post ok on all forms. method=" "

<form action=\"race.php\" enctype=multipart/form-data method="post">

also name the submit button  on all forms name=" "
<input name="submit" type="submit" value="Verzenden">

then where the insert is put this ok.

the post submit comes from the form name submit get me!

if($_POST['submit']) {

}

good luck.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#23 Deftone

Deftone
  • Members
  • PipPip
  • Member
  • 20 posts

Posted 26 July 2006 - 10:18 AM

Thank you thank you thank you
Problem solved.
You can close this topic.  ;) ;) ;) ;) ;) ;) ;) ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users