Hello Michael,
Wednesday, May 19, 2004, 11:46:43 AM, you wrote:
Michael> You are a life saver! You were very close to a solution. What
Michael> finally ended up working is:
Michael> $sql = "INSERT INTO secuses (h1fileno, applicant)
Michael> VALUES ('$_POST[h1fileno]','$_POST[applicant]')";
Michael> Notice the variable names do not have to be enclosed in
Michael> double quotes.
<grin> I wasn't quite sure as I didn't test it. Every time I have an
error in my code it's always the dang quotes... <grin>
Michael> I would have never figured out to enclose the varibale names
Michael> with $POST[]. Do you have an explanation why Sambar would
Michael> need to have variables passed this way?
Has nothing to do with Sambar and everything to do with PHP. For
security reasons the newer version of PHP (I forget which version they
started this with) has the Register_Globals defaulted to 'OFF'. This
is for security reasons (I don't know them exactly as I'm pretty new
to PHP myself), but this is how you access some variables.
Ummmm, looking for the Register_Globals page on PHP.net
Close enough:
http://www.php.net/release_4_1_0.php
Now, there is a way within your code to enable REGISTER_GLOBALS from
within your code to override the php.ini setting, but I don't recall
what it was. I just remember seeing it somewhere and mostly everyone
agreed it was a bad thing. <grin>
--
Cheers,
Leif Gregory
TB Lists Moderator (and fellow registered end-user)
PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F
Web Site <http://www.PCWize.com>
-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/