RE: [PHP] Checking for and @ and a .

2002-02-27 Thread James Hallam
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{|}~]+'. '@'.

RE: [PHP] PHP/Java/SOAP

2002-02-21 Thread James Hallam
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

[PHP] trouble passing variables through a URL

2002-02-04 Thread James Hallam
This is the URL in its A tag: A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A Those variables are supposed to be used to populate this SQL statement: -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] trouble passing variables through a URL

2002-02-04 Thread James Hallam
in your SQL syntax near 'WHERE sec = '' 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

RE: [PHP] trouble passing variables through a URL

2002-02-04 Thread James Hallam
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 This is the URL in its

[PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
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 Hallam -- PHP General Mailing List (http://www.php.net

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
:[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' AND WHERE subsec = '$subsec

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread James Hallam
; } ? // HTML Stuff in here .. ? echo $compDisplay['headline']; //headline is the first component.. ? 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

[PHP] stupid URL variable question

2002-02-01 Thread James Hallam
Can anyone explain why this URL and SQL statement won't work? A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A -- And on test_mediacoverage.php .. $table_name = $locale; // ..connection content.. $sql = SELECT comp, content FROM

RE: [PHP] stupid URL variable question

2002-02-01 Thread James Hallam
]] 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 - Original Message

FW: [PHP] PHP 4.1.1 on iPlanet 6 sp1 on XP Home (I'm reaching here)..

2002-01-23 Thread James Hallam
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: [EMAIL

[PHP] PHP 4.1.1 on iPlanet 6 sp1 on XP Home (I'm reaching here)..

2002-01-22 Thread James Hallam
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 additional commands, e-mail: [EMAIL PROTECTED