Use a regular expression to test the variable submitted by the form. This
is an excerpt from my usual validation script using ereg().. I'm sure you
can adapt this for your purposes..
if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.
'@'.
'[-!#$%&\'*+\\/0-9=?A-Z
We use iPlanet here, and it has Servlet support built in. (nice config
menus, too). PHP works fine too, it just takes a little brain power to
install it correctly.. Anyway, we do have a little servlet guarding a
secure directory, and it uses the PHP engine to grab the templates, same as
every o
Torben Wilson
Sent: Monday, February 04, 2002 1:36 PM
To: James Hallam
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] trouble passing variables through a URL
On Mon, 2002-02-04 at 11:49, James Hallam wrote:
> (try again - Sorry for the double)
>
> my config: PHP 4.1.1/NT/iPlanet 6.1
>
> Thi
#x27;' AND subsec = ''
AND name = '' ORDER BY comp ' at line 2
Any idea why these aren't being passed?
James Hallam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is the URL in its tag:
Media Coverage Test Page
Those variables are supposed to be used to populate this SQL statement:
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 12:03 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: R
ECTED]]
Sent: Friday, February 01, 2002 5:53 PM
To: James Hallam; Php-General
Subject: Re: [PHP] stupid URL variable question
Hi
Try without quotes :
$table_name = $locale;
Your SQL is probably reading "SELECT comp, content FROM $locale instead of
en_na
Regards
Girish
- Origin
Can anyone explain why this URL and SQL statement won't work?
Media Coverage Test Page
--> And on test_mediacoverage.php ..
$table_name = "$locale";
// ..connection content..
$sql = "SELECT comp, content FROM $table_name
WHERE sec = '$sec' AND
subsec = '$subsec
compDisplay[$comp] = $content;
}
?>
// HTML Stuff in here ..
Grr. I'm stumped..
James
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 2:45 PM
To: 'James Hallam'; [EMAIL PROTECTED]
Subject: RE: [PHP] Generating
k Emery [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 2:18 PM
To: 'James Hallam'; [EMAIL PROTECTED]
Subject: RE: [PHP] Generating populated variables from component/content
pairs in a database
$sql = "SELECT * FROM $table_name
WHERE sec = '$sec'
7;
ORDER BY component
";
What can I do to end up with a variable for each component/content pair,
with the variable named with the value of the component, and assigned the
value of the content?:
$foo = 123456;
$bar = 654321;
Is there a simple way to do this?
Thanks,
James Ha
Sorry to re-post this, but I'm really stuck with this one - does *anyone*
out there use iPlanet on Windows? Have you encountered a problem like mine?
Thanks,
James
-Original Message-
From: James Hallam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 2:48 PM
To: [
ow, does anyone know why this crash happens, and would anyone have any
suggestions how to stop it from happening on XP Home, which doesn't have the
ability to specify a domain?
James Hallam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
12 matches
Mail list logo