Why not use a sessions ?
once posted your process form, you can store the final results on
session vars and passing the results to other pages.
Take a look on www.php.net on session topic.
Regards,
Luis Morales
Murray @ PlanetThoughtful wrote:
Sorry but this isn't working. The variable
run the following line of code in your page. This will help you not only
with this experience but for a long time to come in the future:
phpinfo();
BTW, I suspect that your problem is that the variable is
$_POST['ttl_price'];
and not
$_POST[$ttl_price];
You will see that in the output of
I am having an issue with displaying a variable from another php script.
Can you help please?
Here is the code that Im using:
?php
$item_ttlprice = $_POST[$ttl_price];
This should at the very least be:
$item_ttlprice = $_POST[ttl_price]; // remove the last dolalr sign
Also, if youre HTML
, May 11, 2005 6:28 PM
Subject: RE: [PHP-DB] Need some help
Sorry but this isn't working. The variable $ttl_price is a calculation in
my first script. It stores the value of $Total_Price for all items. I am
trying to pass that to a new page. It isn't a form that I'm working with,
do I need
It looks like register_globals is off. You'll have to access the
variables in the post array on your second page:
print INPUT TYPE='hidden' NAME='User_name'
VALUE='$_POST['UserName']';
and so on... Try that first.
Ryan
-Original Message-
From: Adam Farid [mailto:[EMAIL PROTECTED]
unless you have Globals turned on, I think you and
$_POST['variable_name_here'] in the second page.
print INPUT TYPE='hidden' NAME='UserName' VALUE='$_POST['username']\n;
Hi,
I am a new to php. I am using php ver 4.0.3 and MySQL.
I have wrote two files and I'd like to pass some varaibles
Is it User_name or UserName?
Also try this string with 'UserName' in single quotes.
print INPUT TYPE=\hidden\ NAME=\User_name\
VALUE=$_POST['UserName']\;
I've tried but still does not work.
when I put the varaibles name between ' '
I found this error:
Parse error: parse error,
Thanks pepole.
I've tried but still does not work.
when I put the varaibles name between ' '
I found this error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'.
I typed in this way
print INPUT TYPE='hidden' NAME='User_name'
VALUE='$_POST[UserName]';
- Original message -
From: Adam Farid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Mon, 10 May 2004 19:54:51 +
Subject: [PHP-DB] Need some HELP (not works)
Thanks pepole.
I've tried but still does not work.
when I put the varaibles name between ' '
I found this error:
Parse
Hi.
First of all it's never a good idea to use ? instead of ?php. But
anyway. Your loss. ;)
You will need to do a refresh of the page to be able to run an insert
query.
The refresh will need to be made by the JavaScript and since I've
refused to learn JavaScript, I can't help you with
Mikael,
Hi :)
First of all it's never a good idea to use ?
instead of ?php. But
anyway. Your loss. ;)
My loss? Explain? (all ears) I've used only ? php
a few times and end it with ? ... But I normally use
only ? and ? and have *never* had a problem with it.
But I am all ears knowing
Not really a database question, but why not...
Step 1: Clean up the code...
a) Convert all double-quote to single quotes in the HTML portion.
I usually use doubles for PHP and singles for HTML. I hate
having to escape quotes.
b) Use of spacing
]
Subject: Re: [PHP-DB] need some help...
Not really a database question, but why not...
Step 1: Clean up the code...
a) Convert all double-quote to single quotes in the HTML portion.
I usually use doubles for PHP and singles for HTML. I hate
having to escape
]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] need some help...
Thank you. Someone else exists who has the sense of mind to use single
quotes. I hate looking at other people's code that has tons
of \s in it.
- Jonathan
-Original Message-
From: [EMAIL PROTECTED] [mailto
-unlimited.com
Send News:
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 02, 2002 7:00 PM
Subject: Re: [PHP-DB] need some help...
Not really a database question, but why not...
Step 1: Clean up the code...
a) Convert
15 matches
Mail list logo