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

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].'-

[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] [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.

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

[PHP-WIN] [EMAIL PROTECTED]

2007-05-12 Thread sam rumaizan
Yes I do have dynamic content in my page. I’m attaching the whole code for this page. <-Start---> #menu1 {display:none; margin-left:20px} "; echo" View Existing Data

Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread Niel Archer
> It works with HTML without body Technically, both html and body tag pairs are optional, but it make your page clearer to understand when included. First thing I'd suggest is NOT using echo. As far as I can see you have no dynamic content being produced, so put the whole lot before the "

Re: [PHP-WIN] PHP and JavaScript

2007-05-12 Thread Niel Archer
Hi > 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. Clicking on the "Update the Record" link does the same for me in either PHP/HTML versions. Tak

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