On Fri, Oct 10, 2008 at 01:48:01PM -0400, Andrew Ballard wrote:
> On Fri, Oct 10, 2008 at 1:33 PM, The Doctor <[EMAIL PROTECTED]> wrote:
> > What I am trying to do is to
> > pass an aggregate variable which is the sum of
> > some smaller variable.
> >
> > This var also need to finish in the form of
On Fri, Oct 10, 2008 at 1:33 PM, The Doctor <[EMAIL PROTECTED]> wrote:
> What I am trying to do is to
> pass an aggregate variable which is the sum of
> some smaller variable.
>
> This var also need to finish in the form of $.YY .
>
> Pointers please.
Would you care to explain a little further
The Doctor wrote:
> What I am trying to do is to
> pass an aggregate variable which is the sum of
> some smaller variable.
>
> This var also need to finish in the form of $.YY .
>
> Pointers please.
Most of the above can be done using number_format(). The dollar sign you will
have to add yo
What I am trying to do is to
pass an aggregate variable which is the sum of
some smaller variable.
This var also need to finish in the form of $.YY .
Pointers please.
--
Member - Liberal International
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
God, Queen and country! Beware Anti
oops, that should be htmlentities, not htmlspecialchars.
- Jeff
On 3-Oct-05, at 11:51 AM, Jeffrey Sambells wrote:
$PHP_SELF should not be used because it will not work without
register_globals being enabled. Rather, you should use $_SERVER
['PHP_SELF'] for it as above however...
Don't for
can someone show me the right way to do the following...
I want to pass a variable to a self submitting link.
Thanks,
$PHP_SELF should not be used because it will not work without
register_globals being enabled. Rather, you should use $_SERVER
['PHP_SELF'] for it as above however
- Original Message -
From: "A.J. Brown" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, September 27, 2005 3:26 PM
Subject: Re: [PHP] passing a variable with php_self
">
works well too
--
Sincerely,
A.J. Brown
"Jim Moseby" <[EMAIL PROTECTED]>
A.J. Brown wrote:
">
works well too
works only if register_globals is on, doesn't it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
">
works well too
--
Sincerely,
A.J. Brown
"Jim Moseby" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> -Original Message-
>> From: Ross [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, September 27, 2005 8:58 AM
>> To: php
Ross wrote:
> can someone show me the right way to do the following...
>
>
>
> I want to pass a variable to a self submitting link.
Easiest way to do that is to use sprintf() or printf():
%s', $_SERVER['PHP_SELF'],
$link_title);
?>
Or, like you did with inline code in the HTML:
click my
sel
> -Original Message-
> From: Ross [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 8:58 AM
> To: php-general@lists.php.net
> Subject: [PHP] passing a variable with php_self
>
>
>
> can someone show me the right way to do the following...
>
[snip]
can someone show me the right way to do the following...
I want to pass a variable to a self submitting link.
[/snip]
echo $_GET['action'] . "\n";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can someone show me the right way to do the following...
I want to pass a variable to a self submitting link.
Thanks,
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, April 28, 2005 9:08 pm, Mark Cain said:
> What a mess this has turned out to be -- But perhaps you can help me.
>
> I have a dynamic site that pulls headers, navigation, and footers from
> text files. The content for the pages is pulled from mySQL.
>
> On each page I have a JavaScript rota
On Friday 29 April 2005 07:08, Mark Cain wrote:
> What a mess this has turned out to be -- But perhaps you can help me.
>
> I have a dynamic site that pulls headers, navigation, and footers from text
> files. The content for the pages is pulled from mySQL.
>
> On each page I have a JavaScript rota
What a mess this has turned out to be -- But perhaps you can help me.
I have a dynamic site that pulls headers, navigation, and footers from text
files. The content for the pages is pulled from mySQL.
On each page I have a JavaScript rotating banner that displays "Upcoming
Events." The banner
Dear my friends...
I want to make an alert which can display a value from the database.
I am meaning :
how can I pass a value of a variable from PHP into JavaScript alert (
alert("$Firstname, $LastName and $Address");
Is it possible?
--
__
> My understanding is that when passing a querystring to PHP via the URL
> with the GET method, PHP will automatically create a variable with the
> name and value from the querystring. I'm trying to do this and it's
> not working.
Yes, if you have:
example.com/foo.php?id=33
In the old days,
My understanding is that when passing a querystring to PHP via the URL with the GET
method, PHP will automatically create a variable with the name and value from the
querystring. I'm trying to do this and it's not working.
Here's my code from an online tutorial (angle braces replaced with curl
On Tuesday, April 2, 2002, at 10:28 AM, Daniel Alsén wrote:
> I use the variable $change to set the text size in my stylesheet:
>
> if (isset($text_size)) {echo $text_size;} else {echo "10"; $text_size =
> 10;}
>
> And i set the variable via a link:
>
> (or change=dec)
>
> Now - i don´t want
> Yes, there is a way to do it without using any forms. I may be able to
> help you better if you could show me the relevant code -- I'm not sure
> if what I have in mind is really applicable to what you want to do.
It´s not really advanced:
session_start();
session_register('text_size');
if (
On Tuesday, April 2, 2002, at 10:11 AM, Daniel Alsén wrote:
>> You could use a form and have a hidden vield that contains a value.
>> The
>> user would have to click the submit button for the variable/value to
>> carry
>> over though.
>
> I thought about that. But i have two possible values
AIL PROTECTED]>
Sent: Tuesday, April 02, 2002 4:02 PM
Subject: [PHP] Passing a variable invisibly via a href?
> Hi,
>
> i need to pass a variable by letting the user click on a link. Right now i
> do it like: page.php?variable=value
>
> However, i don´t want the variable, a
That might not be such a good idea then.
Tyler
- Original Message -
From: "Daniel Alsén" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 9:11 AM
Subject: SV: [PHP] Passing a variable invisibly via a href?
> >
> You could use a form and have a hidden vield that contains a value. The
> user would have to click the submit button for the variable/value to carry
> over though.
I thought about that. But i have two possible values (via two links) that
could be passed and i can´t really get it together. Two
<[EMAIL PROTECTED]>
> To: "PHP List" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 02, 2002 9:02 AM
> Subject: [PHP] Passing a variable invisibly via a href?
>
>
> > Hi,
> >
> > i need to pass a variable by letting the user click on a link. Righ
Alsén" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 9:02 AM
Subject: [PHP] Passing a variable invisibly via a href?
> Hi,
>
> i need to pass a variable by letting the user click on a link. Right now i
> do it like: page.php?
Hi,
i need to pass a variable by letting the user click on a link. Right now i
do it like: page.php?variable=value
However, i don´t want the variable, and it´s value to appear in the adress
bar of the browser. And i don´t want people to be able to pass the same
variable by reloading the destinat
George you are doing this backwards. Someone posted the code to do this
the right way last night. I would use the concatination of a third variable.
$field = "blah";
$loops = 10;
for ($i=0; $i < $loops; $i++)
{
$displayField = $field . $i;
echo "\n";
}
Rick
I am trying to build a dynamic form, and I am using the code below to let
the user ,name the fields that are generated,but i want to give the user the
option of changing individual field sizes but I cant get it to work.
TIA
george
for ($i=0; $i < $fields; $i++)
{ $fieldName = "field$i";
ech
30 matches
Mail list logo