Search found 22 matches

by boinnk
Sat May 17, 2003 1:26 pm
Forum: Javascript
Topic: Interactive login... nothing fancy really
Replies: 3
Views: 1701

Use onFocus="" in the <input>

Code: Select all

<input type="text" size="16" name="username" value="Username" onFocus="this.value='';">
by boinnk
Thu May 15, 2003 6:15 pm
Forum: PHP - Code
Topic: regexp help
Replies: 4
Views: 725

Perhaps that will do the job, I have to do some testing...
Thanks alot anyways
by boinnk
Thu May 15, 2003 5:08 pm
Forum: PHP - Code
Topic: regexp help
Replies: 4
Views: 725

That's not really what I'm looking for, it's more like how to exclude a word from the regexp query.
by boinnk
Thu May 15, 2003 3:13 pm
Forum: PHP - Code
Topic: regexp help
Replies: 4
Views: 725

regexp help

How do I find/replace all values that doesn't match "foo"?

Code: Select all

<?php
preg_replace("/not foo/i","hello","one two three foo");
?>
Should print:
"hello hello hello foo"

Anyone?
by boinnk
Tue May 06, 2003 10:33 am
Forum: PHP - Code
Topic: preg_replace help
Replies: 1
Views: 324

preg_replace help

Is there a way to count the number of matches in preg_replace. Something like

Code: Select all

<?php

$out = preg_replace("a","a \\something","aaaaaaaaa");

?>
So that $out would contain "a1a2a3a4...".
Is this possible with using only regexp?
by boinnk
Wed Sep 11, 2002 5:21 am
Forum: PHP - Code
Topic: 500 internal...
Replies: 6
Views: 1727

What DLL are you talking about? the apache2 dll?
I think the problem is with the php4ts.dll. When I review the log in windows it has some errors involving the php4ts.dll file.
Does anyone know how to solve this problem?
by boinnk
Tue Sep 10, 2002 12:30 pm
Forum: PHP - Code
Topic: 500 internal...
Replies: 6
Views: 1727

I've tried updating to the latest php snap (stable). Still 500 internal errors and now this:

PHP has encountered an Access Violation at 011929AE

I'm not sure what this means, maybe someone has an idea why I get these errors after a while.
by boinnk
Tue Sep 10, 2002 5:27 am
Forum: PHP - Code
Topic: 500 internal...
Replies: 6
Views: 1727

Perhaps it has something to do with sessions, Im not sure.
But it works, as I said, in the start.
Do you know of any session related problems that results in 500 internal error?
by boinnk
Sun Sep 08, 2002 4:24 pm
Forum: PHP - Code
Topic: 500 internal...
Replies: 6
Views: 1727

500 internal...

I've installed php on a machine running windows 2000 advanced server. Everything works fine... in the beginning. After a little while all I get is 500 internal server error.
The server is using the latest php & IIS (non-cgi).
Any ideas?
by boinnk
Mon Sep 02, 2002 11:22 am
Forum: PHP - Code
Topic: finding _POST variables
Replies: 6
Views: 1642

Thanks! That should do it.
Probably my poor english made it hard to understand my first question ;)
by boinnk
Mon Sep 02, 2002 11:15 am
Forum: PHP - Code
Topic: finding _POST variables
Replies: 6
Views: 1642

Yeah, I know.
I was asking for a way of "finding" the variables in $_POST without knowing the names of them.
And not just

Code: Select all

&lt;?php
extract($_POST);
?&gt;
.
by boinnk
Mon Sep 02, 2002 11:09 am
Forum: PHP - Code
Topic: finding _POST variables
Replies: 6
Views: 1642

with $i I meant $_POST[0], $_POST[1], ....
by boinnk
Mon Sep 02, 2002 11:08 am
Forum: PHP - Code
Topic: finding _POST variables
Replies: 6
Views: 1642

finding _POST variables

How do I find the variables in _POST?
I know i can use _POST['variable'], but I don't know the names of the variables.
$_POST[$i] doesn't work.
Any ideas?
by boinnk
Sat Jul 27, 2002 4:10 am
Forum: PHP - Code
Topic: passing variables using POST
Replies: 16
Views: 2157

Well its finally working. Downloaded the latest apache2 installer (.exe this time, not .msi). It worked!
I downloaded the latest PHP snapshot also, dunno wich one that did it. But I don't really care ;)
Thanks for the help anyways.
by boinnk
Fri Jul 26, 2002 2:15 pm
Forum: PHP - Code
Topic: passing variables using POST
Replies: 16
Views: 2157

Ill go through it again.
And I hope u ment ww.ethereal.com :)
Thanks for the help anyways.