[PHP] PHP input and variables dynamic :)
I'm trying to create input boxes on the fly by using php variables:PHP:so that will create:then i'm trying to set the value to something else using:document.all['tree'].status[1].value='expand';but i'm getting a an error on page dialog saying:'document.all.tree.status.0 is null or not an object'any ideas :)basically i'm trying to create an IE and netscape friendly tree control which is all dynamically created using an array passed.ThanksAndy
[PHP] Require()
I want to use require to send some post information to a page. Code: if ($viewsystem = = 1) $Str = "editexemptfiles.php?every = 1"; require($Str); I've tried what it says in the online documentation, but it doesn't work, Tried: $Str = "d:\htdocs\somewhere\editexemptfiles.php?every = 1"; getting the following error: Fatal error: Failed opening required 'd:/htdocs/somewhere/anotherpage.php?every = 1' (include_path='.;d:\php\includes') in d:\htdocs\somewhere\thispage.php on line 48 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Require()
I'm afraid it don't ork. Thanks Anyway. Anyone ? "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No spaces. > > Instead of "every = 1" > Use: "every=1" > > Adam Voigt > [EMAIL PROTECTED] > > On Wed, 2002-06-26 at 08:37, Andy Whittlestone wrote: > > I want to use require to send some post information to a page. > > > > > > Code: > > > > if ($viewsystem = = 1) > > $Str = "editexemptfiles.php?every = 1"; > > > > require($Str); > > > > > > I've tried what it says in the online documentation, but it doesn't work, > > > > Tried: > > $Str = "d:\htdocs\somewhere\editexemptfiles.php?every = 1"; > > > > > > getting the following error: > > > > Fatal error: Failed opening required > > 'd:/htdocs/somewhere/anotherpage.php?every = 1' > > (include_path='.;d:\php\includes') in d:\htdocs\somewhere\thispage.php on > > line 48 > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Require()
Thanks, that worked, and made it alot clearer. Andy "John Holmes" <[EMAIL PROTECTED]> wrote in message 000501c21d12$f4907580$b402a8c0@mango">news:000501c21d12$f4907580$b402a8c0@mango... > > if ($viewsystem = = 1) > > $Str = "editexemptfiles.php?every = 1"; > > > > require($Str); > > You don't pass variables to a require()'d file. Any variable in the > current scope is available in the included()'d, require()'d file. > > So just require($editexemptfiles.php); and in that file, $every will be > available, automatically. > > Think of include() and require() as a cut and paste operation. When you > use either function, it's just like taking that file and copying it into > the code at that point. So anything available to the main script at that > point is available to the included/required file. > > ---John Holmes... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SMS Again, UK
Hi i'm from the uk, is there any free php scripts that will allow txt messages to be sent within the uk. Couldn't get the other one posted here to work either, Wanna do a similiar idea to what that other guy was doing, but when the UPS Kicks in send a txt, but also so i can goto my site and access it and send a txt for free, :-) Cheers Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php