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
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*
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
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..
>
>
>
> 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
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
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
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
>
> > $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
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
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
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
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
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
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:
$_
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
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
17 matches
Mail list logo