On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott
ron.pigg...@actsministries.org wrote:
I have made the following variable in a form: (I am referring the
select )
?php
$row['promo_code_prefix'] = 42;
$row['promo_code_suffix'] = 2;
echo select name=\distributor- . $row['promo_code_prefix']
On Sun, 2012-11-18 at 01:37 -0700, Nathan Nobbe wrote:
On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott
ron.pigg...@actsministries.org wrote:
I have made the following variable in a form: (I am referring the
select )
?php
$row['promo_code_prefix'] = 42;
$row['promo_code_suffix']
On Sun, Nov 18, 2012 at 5:12 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Sun, 2012-11-18 at 01:37 -0700, Nathan Nobbe wrote:
On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott
ron.pigg...@actsministries.org wrote:
I have made the following variable in a form: (I am referring the
On Sun, 2012-05-13 at 01:57 +1000, Tom Rogers wrote:
Hello Ashley,
Saturday, May 12, 2012, 9:15:23 AM, you wrote:
Can someone point me at examples or directions on how I can pass a
variable via a URL in the following way:
http://server.domain.com//script///variable/
On Sat, May 12, 2012 at 12:25 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
As this method requires an Apache restart, I don't see what advantage
you have over using an .htaccess file?
Performance:
http://httpd.apache.org/docs/current/howto/htaccess.html
You should avoid using
On Thu, 15 Mar 2012 11:30:20 -0400, Larry lrr...@gmail.com sent:
Hello, when I pass a variable whose value originally came from $_GET
or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty
string. Note that the file is successfully opened and written to by
the script, but the
On Thu, Mar 15, 2012 at 11:30, Larry lrr...@gmail.com wrote:
Hello, when I pass a variable whose value originally came from $_GET
or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty
string. Note that the file is successfully opened and written to by
the script, but the variable
On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
On Thu, Mar 15, 2012 at 11:30, Larry lrr...@gmail.com wrote:
Hello, when I pass a variable whose value originally came from $_GET
or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty
string. Note
On Thu, Mar 15, 2012 at 4:59 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
On Thu, Mar 15, 2012 at 11:30, Larry lrr...@gmail.com wrote:
Hello, when I pass a variable whose value originally came from $_GET
or $_REQUEST to
On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 4:59 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
On Thu, Mar 15, 2012 at 11:30, Larry lrr...@gmail.com wrote:
Hello, when I
On Thu, Mar 15, 2012 at 7:51 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 4:59 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown
daniel.br...@parasane.net wrote:
On Thu, Mar
On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 7:51 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 4:59 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at
On Thu, Mar 15, 2012 at 8:41 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 7:51 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at
On Thu, Mar 15, 2012 at 4:03 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 8:41 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 7:51 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at
On 15 Mar 2012, at 20:07, Larry wrote:
On Thu, Mar 15, 2012 at 4:03 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 8:41 PM, Larry lrr...@gmail.com wrote:
On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt tijn...@gmail.com wrote:
On Thu, Mar 15, 2012 at 7:51 PM, Larry
On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote:
Is it possible to set a parameter in PHP 5 to ask the interpreter to
raise an error every time I try to use a variable that wasn't
initialized before ?
For example, I've write this piece of code in Python:
print(DonaldDuck)
I get
This kind of tip is raised in form of notices. So, to enable that, use the
following function on top of your scripts:
error_reporting(E_ALL | E_NOTICE);
Best regards,
Bruno.
2009/5/18 Paul M Foster pa...@quillandmouse.com
On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote:
Is it
Thank you
Il giorno 18/mag/09, alle ore 18:15, Bruno Fajardo ha scritto:
This kind of tip is raised in form of notices. So, to enable that,
use the
following function on top of your scripts:
error_reporting(E_ALL | E_NOTICE);
Best regards,
Bruno.
--
PHP General Mailing List
Ron Piggott wrote:
I am writing a form right now.
I would like to make the checkbox an array variable. The first part of
the array is the component reference, the second part is the package
reference. What name would you assign to it that I could use in
processing the form in the PHP script
Jim what you sent is very helpful.
I had an error message when I submitted the form with a POST
your_cleaning_function
gave me this error:
Fatal error: Call to undefined function: your_cleaning_function()
I am trying to save the ones that were checked to a mySQL table and then
notify the
Can you send us some of the code so we would be able to help you?
On 23/06/2008, Ron Piggott [EMAIL PROTECTED] wrote:
Jim what you sent is very helpful.
I had an error message when I submitted the form with a POST
your_cleaning_function
gave me this error:
Fatal error: Call to
Quoting Ron Piggott [EMAIL PROTECTED]:
Jim what you sent is very helpful.
I had an error message when I submitted the form with a POST
your_cleaning_function
gave me this error:
Fatal error: Call to undefined function: your_cleaning_function()
I am trying to save the ones that were
On Mon, Jun 23, 2008 at 6:24 AM, Ron Piggott [EMAIL PROTECTED] wrote:
Fatal error: Call to undefined function: your_cleaning_function()
This is the perfect example as to why NOT to copy-and-paste code
from anywhere until you've checked it out yourself first.
Jim placed the function
At 12:23 AM -0400 6/19/08, Robert Cummings wrote:
?php
$GLOBALS['mysql_host'] = $_REQUEST['host'];
?
I've intentionally used request since I don't know if you would do it
via $_POST or $_GET. Additionally, one would hope you'd
check/filter/process the submitted value before being so careless
On Thu, 2008-06-19 at 15:54 +1200, Byron wrote:
Hi
I was wondering if this is the correct way to reference a variable from a
file that has been included inside of a function. Also just general
static/global variable usage.
For example:
Myqsql_functions.php
?php
On Mon, August 20, 2007 12:41 am, Augusto Morais wrote:
Hi,
I want create a variable based in another variable. Example:
$foo (a simple variable);
$myvar_foo
Does it possible?
variable variables will do it.
But 99.% of the time, you're better off just using an array.
--
Some
Augusto Morais wrote:
I want create a variable based in another variable. Example:
Maybe this will give you some ideas?:
http://us3.php.net/manual/en/language.variables.variable.php
Good luck!
Cheers,
Micky
--
Wishlists: http://snipurl.com/1gqpj
Switch: http://browsehappy.com/
BCC?:
Surf directly to your CSS URL and see what happens.
There are several possibiliies:
#1.
Your CSS has ?php ... ? in its output, because you have not
convinced your web-server to run your CSS file through PHP to compute
the dynamic result.
You need something like this in .htacces:
File
At 2:15 AM -0500 3/14/07, Richard Lynch wrote:
Surf directly to your CSS URL and see what happens.
There are several possibiliies:
#1.
Your CSS has ?php ... ? in its output, because you have not
convinced your web-server to run your CSS file through PHP to compute
the dynamic result.
You need
Source code.
On Fri, February 3, 2006 12:43 am, suresh kumar wrote:
hi,
In my project i assigned name of the text field as
'loginform'.but i got error msg like 'Undefined
variable'
then i changed the name as 'hiddenfield' but same
error.any one having idea reply me.
suresh kumar wrote:
hi,
In my project i assigned name of the text field as
'loginform'.but i got error msg like 'Undefined
variable'
then i changed the name as 'hiddenfield' but same
error.any one having idea reply me.
POST the code so we can see exactly whats going on...
--
PHP
Jim Moseby wrote:
Thanks for the responses guys, but what i'm saying is i would
...
I believe what Jochem is trying to tell you is that when you assign the
string variable, the variable names are expanded to their values, so the
names are no longer available.
exactly - nicely put Jim.
[snip]
yeah 'Superman' explain what it is you want to do AND why - then maybe we
can
give you some help - what you are currently asking is impossible (well
actually
Jay Blanchard hinted at a way to do it but I firmly believe that its
conceptually
over your head atm and very probably not a good
Jay Blanchard wrote:
[snip]
yeah 'Superman' explain what it is you want to do AND why - then maybe we
can
give you some help - what you are currently asking is impossible (well
actually
Jay Blanchard hinted at a way to do it but I firmly believe that its
conceptually
over your head atm and very
[snip]
ah heck is that the same code that _we_ (Jay and me, etc) played with to
find SQL queries?
or something that was based on it?
I remember Robin Vickery coming up with a token based variant which was
rather nifty -
must look into that agian sometime!
[/snip]
They are all variants of that.
Jay Blanchard wrote:
[snip]
yeah 'Superman' explain what it is you want to do AND why - then maybe we
can
give you some help - what you are currently asking is impossible (well
actually
Jay Blanchard hinted at a way to do it but I firmly believe that its
conceptually
over your head atm and very
[snip]
I wrote a doohickey once which searched for all variable searching
doohickies.
[/snip]
I cannot tell you how happy I am to see you use the past perfect tense
correctly there.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
ah heck is that the same code that _we_ (Jay and me, etc) played with to
find SQL queries?
or something that was based on it?
I remember Robin Vickery coming up with a token based variant which was
rather nifty -
must look into that agian sometime!
[/snip]
They are
[snip]
They are all variants of that. All nifty little tools. We should gather
those up someplace...shouldn't we?
Well, I just purchased some domains for that. Who wants to develop it? ;)
phpdepository.com
phpdepository.org
phpdepository.net
[/snip]
I'll contribute...
--
PHP General
On Thu, December 29, 2005 3:31 pm, PHP Superman wrote:
Thanks for the responses guys, but what i'm saying is i would like to
return
all the variable names i have in a string,
$String=Blah Blah Blah $VarName Blah Blah Blah;
$VarName = 'xyz';
$String now has Blah Blah Blah xyz Blah Blah Blah in
PHP Superman wrote:
Hey everyone, is there a way to return all the variables from a string into
an array, for example
$Var1=Yo;
$Var2=Man;
$SQL=SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2;
$AllVars=MySpecialFunction($SQL);
your function MySpecialFunction() will recieve the following
Thanks for the responses guys, but what i'm saying is i would like to return
all the variable names i have in a string,
$String=Blah Blah Blah $VarName Blah Blah Blah;
$Vars=myspecialfunction($Varname);
echo ($Vars);
that code would produce $Varname, if there were more variables it would also
[snip]
Thanks for the responses guys, but what i'm saying is i would like to return
all the variable names i have in a string,
$String=Blah Blah Blah $VarName Blah Blah Blah;
$Vars=myspecialfunction($Varname);
echo ($Vars);
that code would produce $Varname, if there were more variables it would
Thanks for the responses guys, but what i'm saying is i would
like to return
all the variable names i have in a string,
$String=Blah Blah Blah $VarName Blah Blah Blah;
$Vars=myspecialfunction($Varname);
echo ($Vars);
that code would produce $Varname, if there were more
variables it
On Wed, Dec 28, 2005 at 10:30:04PM -0500, PHP Superman wrote:
Hey everyone, is there a way to return all the variables from a string into
an array, for example
$Var1=Yo;
$Var2=Man;
$SQL=SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2;
$AllVars=MySpecialFunction($SQL);
Dotan Cohen wrote:
I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get
variables are not available in my scripts. For instance, in
file.php?foo=bar the variable $foo is empty. Same thing for variables
passed in forms (get or post), which is how I came across this.
What could
On 9/12/05, Burhan Khalid [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get
variables are not available in my scripts. For instance, in
file.php?foo=bar the variable $foo is empty. Same thing for variables
passed in forms (get
On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote:
I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get
variables are not available in my scripts. For instance, in
file.php?foo=bar the variable $foo is empty. Same thing for variables
passed in forms (get or post),
On 9/12/05, Ryan A [EMAIL PROTECTED] wrote:
On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote:
I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get
variables are not available in my scripts. For instance, in
file.php?foo=bar the variable $foo is empty. Same
On Tue, May 31, 2005 12:18 pm, Niels Riis Kristensen said:
Hi. I have a problem that consist of a desire to use preformatted
text in a while-loop while inserting data from another search. The
code is as follows:
$get_var1 = mysql_query(SELECT * FROM table1 WHERE id LIKE
Quite sending this over and over.it is taking a while for the e-mail
to get to the list
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oh, I get it. I have been very poor at explaining my problem.
I have a table, table1, in which I have standard text for letters. I
would like to put data from table2 in the letters, so that the data
is automatically placed in the letter through code in the standard
text. It sounds
So I tried it that way and it worked, that is annoying though, having to add
extra lines to the code and assign the contents of one variable to another.
Any way around this?
Jonathan
Jonathan Duncan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying to run a shell command
Stuart Felenstein wrote:
I haven't try this yet but wondering if it's possible.
Can I do something like this:
select fieldone from table ;
$myvar = $fieldone ?
And more so could I do it with a where clause ?
i.e. select fieldone from table where fieldone = 3
$myvar = $fieldone ?
This is
On Sunday 01 August 2004 02:28, Andre Dubuc wrote:
Yes the first page has the appropriate form tags:
{edit-news.php]
form action=edit-news-x.php method=post . . . /form
Good.
The second and third pages [edit-news-x.php/ edit-submit.php] are pure php
(a pass-through page) -- I wasn't aware
On Sunday 01 August 2004 01:40, Andre Dubuc wrote:
I have attempted to post variables from a simple page: edit-news.php to
edit-news-x.php, then load them into a session for re-use -- I use output
buffering. They do not pass. The code:
[edit-news]
?php session_start(); ob_start(); ?
On Saturday 31 July 2004 02:12 pm, Jason Wong wrote:
On Sunday 01 August 2004 01:40, Andre Dubuc wrote:
I have attempted to post variables from a simple page: edit-news.php to
edit-news-x.php, then load them into a session for re-use -- I use output
buffering. They do not pass. The code:
Ford, Mike [LSS] wrote:
On 13 May 2004 19:52, John Nichel wrote:
Monty wrote:
Is there any way to get JUST the user-defined variables in PHP?
Problem with get_defined_vars() is that it contains everything,
including server and environment vars, and there's no easy way to
keep just the
From: Steve Douville [EMAIL PROTECTED]
?
$a = yes;
$b = no;
?
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like something that
$GLOBALS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Steve,
Thursday, May 13, 2004, 6:19:07 PM, you wrote:
SD Is there a variable that I can call that will return an array with any
SD variables I have set? I'd want to call it and then parse and display current
SD values of, in this case, a and b. Hope that makes sense.
get_defined_vars();
John W. Holmes wrote:
From: Steve Douville [EMAIL PROTECTED]
?
$a = yes;
$b = no;
?
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like something that Returns an array of all defined variables??
Monty wrote:
Is there any way to get JUST the user-defined variables in PHP? Problem with
get_defined_vars() is that it contains everything, including server and
environment vars, and there's no easy way to keep just the user-defined vars
part of the array created by get_defined_vars.
Monty
Is there any way to get JUST the user-defined variables in PHP? Problem with
get_defined_vars() is that it contains everything, including server and
environment vars, and there's no easy way to keep just the user-defined vars
part of the array created by get_defined_vars.
Monty
Why not just unset
From: Monty [EMAIL PROTECTED]
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like something that Returns an array of all defined
John W. Holmes wrote:
?php
$starting_vars = get_defined_vars();
//bunch of PHP code...
$current_vars = get_defined_vars();
$user_defined_vars = array_diff($current_vars,$starting_vars);
...
---John Holmes...
This cat is skinned. :)
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL
?php
$starting_vars = get_defined_vars();
//bunch of PHP code...
$current_vars = get_defined_vars();
$user_defined_vars = array_diff($current_vars,$starting_vars);
...
---John Holmes...
Oh I like that... wish I would have suggested that one!
--
PHP General Mailing List (http://www.php.net/)
On 13 May 2004 19:52, John Nichel wrote:
Monty wrote:
Is there any way to get JUST the user-defined variables in PHP?
Problem with get_defined_vars() is that it contains everything,
including server and environment vars, and there's no easy way to
keep just the user-defined vars part of
[snip]
eg. function blah ($bl,$ah) {
$bl++;
$ah++;
$blah=$bl+$ah;
}
[/snip]
function blah ($bl,$ah) {
$bl++;
$ah++;
$blah=$bl+$ah;
return $blah;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Don't you need to set a return?
Return $blah;
At the bottom of your function block.
alex hogan
-Original Message-
From: Nathan Croker [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables inside a function
I am
On Tuesday 09 March 2004 01:44, Alex Hogan wrote:
Don't you need to set a return?
Return $blah;
At the bottom of your function block.
That does not make the variable $blah available elsewhere in the program. The
OP should take a look at manual Variables Variable scope.
--
Jason Wong -
I can return the favor sometime.
alex hogan
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables inside a function
On Tuesday 09 March 2004 01:44, Alex Hogan wrote:
Don't you need
[snip]
I then echo $blah; somewhere else in the script but nothing is echo'd.
How
do I make it so that I can use $blah anywhere in the script?
[/snip]
I went back and re-read the post, and his question above is the
important one
First you must return something from the function, then you
On Tuesday 09 March 2004 02:03, Alex Hogan wrote:
If I read his post correctly he was looking to make blah() available and
not $blah.
The OP says so that I can use $blah anywhere in the script?, which to me
means that $blah needs to be global ...
[snip]
Of course obviously being one of the
My mistake.
Good one on the spelling I can't believe I missed that one
alex hogan
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 12:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables inside a function
On Tuesday 09
Is there a session_start() on the second page ?
Also i didnt know u could set an action to a jscript popup, it may not be
posting to the second page. What you could try is posting to the second
page like a normal post, u need to do something like
session_start();
$_SESSION['startdate'] =
Thank you! It looks like it was a combination of my NOT using the $_POST
and the fact that my JScript wasn't allowing the variables to pass... WHO
KNEW?!?
THANKS!!!
Chase
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there a session_start() on the second page ?
Also i didnt
One other irritation for the evening... The MySQL query that I am trying to
create needs to use the date the user enters and then add @ 12:01am EST
to it so it will acutally match the data in the table. Below is my quesry
line, but I don't know how to add that chunk to each of the variables...
Escape it.
$string = \\;
Or, use single quotes:
$string = '\';
On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote:
hello,
how can i put the character \ in a variable ?
I've done the code below but errors occurs :
$barre_oblique = \;
Parse error: parse error, unexpected
Whoops, mistyped on my reply, you need to escape it with the single
quotes to.
On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote:
hello,
how can i put the character \ in a variable ?
I've done the code below but errors occurs :
$barre_oblique = \;
Parse error: parse error,
Hello Dominique,
Thursday, February 19, 2004, 5:49:43 PM, you wrote:
DA how can i put the character \ in a variable ?
DA I've done the code below but errors occurs :
DA $barre_oblique = \;
DA Parse error: parse error, unexpected T_STRING
DA Please help
$barre_oblique = \\;
--
Best
ok thanks
pb solved
thank you everybody
- Original Message -
From: Richard Davey [EMAIL PROTECTED]
To: Dominique ANOKRE [EMAIL PROTECTED]
Cc: Php List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 5:52 PM
Subject: Re: [PHP] variables
Hello Dominique,
Thursday, February 19
give the corresponding source code
are you using POST or GET ? What about REGISTER_GLOBALS ???
PS : NO MAILS IN HTML ON THE LIST, PLEASE
-Message d'origine-
De : Alessandro Rodiani [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 15 février 2004 21:29
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Try this for a generic fix if it is the globals issue:
Place this somewhere to set to TRUE or FALSE when needed
$GLOBAL_FIX = TRUE;
use an include on every script:
if($GLOBAL_VARS_FIX) {
if( phpversion() = '4.2.0' ) {
extract($_POST);
extract($_GET);
extract($_SERVER);
On 19 Jan 2004 at 21:43, Kaushan wrote:
Hi,
I am new to PHP scripting and struggling with the following problem.
I have two files, an HTML file and a PHP file.
HTML file contains a form with one text field and a submit button.
When a user pressed the submit button, it calls the php file
It is most likely globals. Access the variables by...
echo $_GET['fname'];
or $_POST['fname']; if you are using post which it doesn't appear you do.
Larry
PS it is adviseable to leave globals alone in php.ini since it is set that
way for security concerns.
-Original Message-
From:
Hello Alex,
Thursday, January 15, 2004, 9:47:27 PM, you wrote:
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
--
Best regards,
Richard
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
or use:
function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar;
?; }
The short syntax only works
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
or use:
function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar;
?; }
The short syntax only works
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
or use:
function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar;
?; }
The short syntax only works
On Thu, 2004-01-15 at 16:47, Alex Hogan wrote:
How do you insert a php variable into a javascript function?
For instance;
function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
?php
echo 'function redirect(' . $MyVar . ') {';
echo 'location =' . $MyVar . ';}';
?
--
Brian
Hi Lloyd,
use quotes around your values
echo input type=\text\ name=\question1_text\
value=\$question\br /;
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
Lloyd Bayley wrote:
Greetings All,
Have a small problem that I just can't work out. I know it's an easy one
but it's got me
Greg,
Sheesh! I had neglected to do that...I've been working with a few different
languages and I'm starting to confuse them I think.
Thanks for your non-offensive reply.
It's nice to see that you can overlook the little failures we have now and
again.
Lloyd. :-)
At 09:58 AM 7/12/2003, you
Lloyd Bayley wrote:
Thanks for your non-offensive reply.
It's nice to see that you can overlook the little failures we have now
and again.
Please learn HTML is offensive? Please... I even gave you the
_correct_ answer that involves htmlentities(), otherwise you'll be back
here with another
John W. Holmes wrote:
Lloyd Bayley wrote:
Thanks for your non-offensive reply.
It's nice to see that you can overlook the little failures we have now
and again.
Please learn HTML is offensive? Please... I even gave you the
_correct_ answer that involves htmlentities(), otherwise you'll be
This doesn't sound right. It's doesn't behave like this for me.
Can you supply an example?
Martin
-Original Message-
From: Mike D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 December 2003 10:35 AM
To: PHP General list
Subject: [PHP] Variables scope question
Hello,
I have
NEVERMIND - some user error there... (happens once in a while)
It's been a long day ;-)
Thanks
- MD
On 12/3/03 3:36 PM, Martin Towell [EMAIL PROTECTED] wrote:
This doesn't sound right. It's doesn't behave like this for me.
Can you supply an example?
Martin
-Original Message-
On Sunday 30 November 2003 15:54, Biph wrote:
I have a question, and maybe I'm an idiot (alright not maybe). I can't get
the damned variables to stop showing their variable names on the screen,
like a variable $stock_quote appears in the HTML as $stock_quote, what the
hell am I doing wrong?
You have to put it between double quotes.
Jeroen
--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at
its end.
(Henry Spencer)
Politics.be op imode!
http://i.politics.be/
-Original Message-
From: Biph [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 30,
1 - 100 of 277 matches
Mail list logo