Re: [PHP] mysql_connect noob question

2013-04-20 Thread tamouse mailing lists
No, that's for writing safe html output. If the user or password contains special chars, sending them through htmlspecialchars would turn them into html entities. i doubt you want that. I'm at a loss here. The only thing Ican think of is to try something like this at the top of the script: and

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread tamouse mailing lists
This will be brief as I'm on a tablet... On Apr 19, 2013 5:53 PM, "dealTek" wrote: > > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - then coming back to the *same page1.php*

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > No, that's for writing safe html output. > > If the user or password contains special chars, sending them through > htmlspecialchars would turn them into html entities. i doubt you want that. > > I'm at a l

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 12:51 AM, dealTek wrote: > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - > then coming back to the *same page1.php* with the XML data listed below..

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread shiplu
> > > > Question: how do you use $mylist when the xml is not as a file but is > returned on a web page? > I assume It returns as a string from page. Then use simplexml_load_string(). See http://php.net/manual/en/function.simplexml-load-string.php -- Shiplu.Mokadd.im ImgSign.com | A dynamic sig

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Thanks for that good suggestion. I tried that and as expected, the passed variables are coming through exactly as expected: array(3) { ["user"]=> string(3) "joe" ["password"]=> string(11) "complacency" ["login"]=> string(5) "Login" } The bottom one seems to be the submit button's

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Goog suggestion. The user name is an email address so it does contain @. Password is all pure lowercase ASCII. Wonder if the shift-2 is causing the problem? On 4/20/13 4:44 AM, Matijn Woudt wrote: On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: No, t

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 19, 2013, at 4:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact same > values into mysql_connect as s

Re: [PHP] mysql_connect noob question

2013-04-20 Thread David OBrien
> > > $form_user = $_POST[ 'user' ]; > > $form_pass = $_POST[ 'password' ]; > > > > # Connect to remote DB > > > > $LINK = mysql_connect( $host, $form_user, $form_pass ); > > > > And yes, my $host param is correct. > Have you tried $LINK = mysql_connect( $host, "$form_user", "$form_pass" ); just

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
Why are you allowing anyone to connect to your database from a form? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com A little OT, but... What do you mean by this question? How do you check someone's credentials if not by connecting to a db to verify the login

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Stuart Dallas
On 20 Apr 2013, at 16:25, Jim Giner wrote: >> Why are you allowing anyone to connect to your database from a form? >> > A little OT, but... > What do you mean by this question? How do you check someone's credentials if > not by connecting to a db to verify the login? Cause I'm doing the same

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
On 4/20/2013 11:44 AM, Stuart Dallas wrote: On 20 Apr 2013, at 16:25, Jim Giner wrote: Why are you allowing anyone to connect to your database from a form? A little OT, but... What do you mean by this question? How do you check someone's credentials if not by connecting to a db to verify t

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Same error. That just turns those into string literals. On 4/20/13 5:48 AM, David OBrien wrote: $form_user = $_POST[ 'user' ]; $form_pass = $_POST[ 'password' ]; # Connect to remote DB $LINK = mysql_connect( $host, $form_user, $form_pass ); And yes, my $host param is correct. Have you tried

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 20, 2013, at 11:44 AM, Stuart Dallas wrote: > On 20 Apr 2013, at 16:25, Jim Giner wrote: > >>> Why are you allowing anyone to connect to your database from a form? >>> >> A little OT, but... >> What do you mean by this question? How do you check someone's credentials >> if not by conn

[PHP] Looking for complete entered URL

2013-04-20 Thread Angela Barone
I've written a script that logs all visits to a web site, complete with referrer and IP address. It also logs all 4xx errors. What I'd like to add to this is, if someone adds extra code after the page_name.php, to be able to capture any extra code and log that. I've tried: $_

Re: [PHP] Looking for complete entered URL

2013-04-20 Thread Tom Rogers
Hello Angela, Sunday, April 21, 2013, 4:51:37 AM, you wrote: > I've written a script that logs all visits to a web site, > complete with referrer and IP address. It also logs all 4xx errors. > What I'd like to add to this is, if someone adds extra code after > the page_name.php, to be ab

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
Night now this is just a test server. On the real thing I'll do it right. On 4/20/13 10:58 AM, Tedd Sperling wrote: On Apr 20, 2013, at 11:44 AM, Stuart Dallas wrote: On 20 Apr 2013, at 16:25, Jim Giner wrote: Why are you allowing anyone to connect to your database from a form? A little