Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread Niel Archer
Hi > Can some one explain to me why this code (Sliding menus) works fine with HTML > but it doesn’t work with PHP? Please define 'doesn't work', as it does exactly the same for me whether PHP or HTML. BTW hopefully a typo, but your example has no tag only the closing one. I also wouldn't spre

[PHP-WIN] *****SPAM***** Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread Niel Archer
Spam detection software, running on the system "mail.enchantedspirit.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see [EMAIL PROTECTED] for

Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread sam rumaizan
In PHP when you click on the menu text Update The Record the menu doesn’t open it takes you to another page. But in HTML when you click on the menu text Update The Record the menu dose open. Update The Record Niel Archer <[EMAIL PROTECTED]> wrote: Hi > Can some one explain to me

Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread sam rumaizan
It works with HTML without body Copy any paste this code and see it your self. So the problem is not the body #menu1 {display:none; margin-left:20px} "; echo" View Existing Data

Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread Stut
sam rumaizan wrote: In PHP when you click on the menu text Update The Record the menu doesn’t open it takes you to another page. But in HTML when you click on the menu text Update The Record the menu dose open. Update The Record When you try the PHP version, do a "View Source" in

Re: [PHP-WIN] [EMAIL PROTECTED]

2007-05-12 Thread Niel Archer
> Yes I do have dynamic content in my page. > I’m attaching the whole code for this page. You missed the point. The fragment you supplied had no dynamic content so does not need to be echoed at all. It can simply exist outside the tag structure. Niel -- PHP Windows Mailing List (http://www.

[PHP-WIN] formating a string

2007-05-12 Thread James Savage
i have a 12 digit code that i want to format as follows -- it is all numbers i tried using substr() to format it in this fassion $code = abcdwxyz8765; $string = array(); $string[] = substr($code,1,4); $string[] = substr($code,5,8); $string[] = substr($code9,12); echo $string[0],'-',$st

Re: [PHP-WIN] formating a string

2007-05-12 Thread Kevin Smith
The this instead. BTW, you misunderstood the useage of substr, see http://uk.php.net/manual/en/function.substr.php. $code = 'abcdwxyz8765'; $string = array(); array_push($string,substr($code,0,4)); array_push($string, substr($code,4,4)); array_push($string, substr($code,8,4)); echo $string[0].'-

Re: [PHP-WIN] [EMAIL PROTECTED]

2007-05-12 Thread sam rumaizan
I understand, but how about the attached code? Every thing works fine except the slide menu. Sam Niel Archer <[EMAIL PROTECTED]> wrote: > Yes I do have dynamic content in my page. > I’m attaching the whole code for this page. You missed the point. The fragment you supplied had no dynamic