Ask a Question related to PHP Development, Design and Development.
-
l'atelier Ho #1
Variable do not move from on script to the another one.
Hello to all
I just download the WAMP (apache-mysql-php) package.
This package work with PHP5.
Aktually I can't move on variable ($id) the next script!
Script: articles.php
...
echo "<td><a target='gauche'
href='affarticle.php?id=$row[0]'><img
src='articles/$row[7]' width='30' height='45'
border='0'></a>";
...
Explorer show me the following information in status line:
.../affarticle.php?id=5
But the affarticle.php script do not know any more the
value $id!
//Debug
Echo "<p>ID: ".$id;
echo "<p>";
The mentioned scripts work very well by the provider!
Until yet I couldn't find out the problem. Do I have to
setup something in Apache or PHP ?
Many thanks in advance for your help.
Otto
l'atelier Ho Guest
-
cfformitem script variable used in cfif
Hi, I have this code within a cfform in flash format: <cfformitem type="script"> mycat = {Category.selectedItem.data}; </cfformitem> ... -
variable to a shell-script
hello, i've got really problems transporting a form-variable (called searchstring) to a shellscript :-/ because of a blank in the searchstring... -
i want a script to move objects smoothly
hey folks: i've been doing some animation and one problem i have repeatedly is that i want to mimic REAL 3d movement....in particular, i want to... -
newbie Variable script error - Help!
I've been using Director for nice linear keyframed animations for years -- thanks, MM! Now I would like to speed things up using Lingo (replacing... -
Try to pass variable into a php script
I am not sure how you used javascript to submit the form. I usually do like document.form.action = "/cgi-bin/register.pl"... -
Alvaro G Vicario #2
Re: Variable do not move from on script to the another one.
*** l'atelier Ho wrote/escribió (Wed, 18 Aug 2004 13:32:29 +0200):
Use one of these (just in case):> echo "<td><a target='gauche'
> href='affarticle.php?id=$row[0]'><img
> src='articles/$row[7]' width='30' height='45'
> border='0'></a>";
"...{$row[0]}..."
"..." . $row[0] . "..."
The right syntax is:> Echo "<p>ID: ".$id;
echo "<p>ID: " . $_GET['id'];
--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed ;-)
--
Alvaro G Vicario Guest
-
Guenther Fuchs #3
Re: Variable do not move from on script to the another one.
Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote:
Additional info: You may want to read more about "register_globals" within> The right syntax is:>> Echo "<p>ID: ".$id;
> echo "<p>ID: " . $_GET['id'];
php.ini & related.
--
meint Günther Fuchs
| Am effektivsten schützen Sie sich vor böswilligen Hyperlinks,
| indem Sie sie einfach nicht anklicken.
| [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][ln];833786
Guenther Fuchs Guest
-
l'atelier Ho #4
Re: Variable do not move from on script to the another one.
Hello Guenther
Many thanks for you help. I set the register_globals to On, and now every> Additional info: You may want to read more about "register_globals" within
> php.ini & related.
>
thinks work well.
Best regards
Otto
l'atelier Ho Guest
-
Alvaro G Vicario #5
Re: Variable do not move from on script to the another one.
*** l'atelier Ho wrote/escribió (Wed, 18 Aug 2004 19:49:07 +0200):
I suggest that you turn it off again and start writing your scripts in such> Many thanks for you help. I set the register_globals to On, and now every
> thinks work well.
a way that they needn't register_globals on. There's a good reason for
"off" being the default option: it's a security risk since anyone can set
variables in your script, just creating a GET value.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed ;-)
--
Alvaro G Vicario Guest
-
Guenther Fuchs #6
Re: Variable do not move from on script to the another one.
Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote:
I only can follow this suggestion and double it, what I meant was NOT to> I suggest that you turn it off again and start writing your scripts in
> such a way that they needn't register_globals on.
turn register_globals on but more to read about WHY it is turned off and
how to (easily!) use proper code ;-)
--
meint Günther Fuchs
| Am effektivsten schützen Sie sich vor böswilligen Hyperlinks,
| indem Sie sie einfach nicht anklicken.
| [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][ln];833786
Guenther Fuchs Guest
-
l'atelier Ho #7
Re: Variable do not move from on script to the another one.
Hello,
Do you think that my provider have it on "on" that the same script work>> > I suggest that you turn it off again and start writing your scripts in
> > such a way that they needn't register_globals on.
> I only can follow this suggestion and double it, what I meant was NOT to
> turn register_globals on but more to read about WHY it is turned off and
> how to (easily!) use proper code ;-)
>
there?
Regards
Otto
l'atelier Ho Guest
-
Guenther Fuchs #8
Re: Variable do not move from on script to the another one.
l'atelier Ho <ateho@freesurf.ch> wrote:
Yes I do, unfortunately most providers do have it on "on" although this is> Do you think that my provider have it on "on" that the same script
> work there?
a security leak.
--
meint Günther Fuchs
| Am effektivsten schützen Sie sich vor böswilligen Hyperlinks,
| indem Sie sie einfach nicht anklicken.
| [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][ln];833786
Guenther Fuchs Guest



Reply With Quote

