|
>>> [EMAIL PROTECTED] 2004-05-19 10:20:22 AM >>>
Hello Michael,
Wednesday, May 19, 2004, 6:57:21 AM, you wrote: Michael> I'm pretty sure that the problem is, as you say, the varibles Michael> not getting passed. If I try to echo the variables to the Michael> screen, they don't appear there either, but a row does get Michael> created in the MySql (as a result of the autoincrement Michael> field). So I've ruled out a bad dB connection. The thing Michael> is, I am able to get this to work with th Apache web server, Michael> but I'm hell bent on staying with Sambar. Can you post some of your code for use to look at? Including when you're assigning values to your variables? -- Cheers, Leif Gregory Leif,
HERE IS THE FORM
<html>
<body>
<form method="post" action="">
<table border=1>
<tr><td>H1 File No.:</td><td><input type="Text" name="h1fileno"></td></tr>
<tr><td>Applicant:</td><td><input type="Text" name="applicant"></td></tr>
<tr><td></td><td><input type="Submit" name="submit" value="Submit"></td></tr>
</form> </body>
</html>
AND HERE IS THE PHP TO DO THE SQL INSERT <html> <body>
<?php
// process form
$db = mysql_connect("planet", "any");
mysql_select_db("hydrocorr",$db);
$sql = "INSERT INTO secuses (h1fileno, applicant) VALUES ('$h1fileno','$applicant')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
?> </body>
</html> ------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/ |
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
- [sambar] Desperately Need Help with Sambar and PHP Peter
- [sambar] Desperately Need Help with Sambar and PHP Danny Mallory
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
- [sambar] Desperately Need Help with Sambar and PHP Leif Gregory
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
- [sambar] Desperately Need Help with Sambar and PHP Leif Gregory
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
- [sambar] Desperately Need Help with Sambar and PHP Leif Gregory
- [sambar] Desperately Need Help with Sambar and ... Leif Gregory
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
- [sambar] Desperately Need Help with Sambar and PHP Leif Gregory
- [sambar] Desperately Need Help with Sambar and PHP Michael Cook
