Re: [PHP-DB] Need some help
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 $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 to make it a form? I would greatly appreciate any help you >>could >>offer. >> >> > >The $_POST[] superglobal is only available to a page directly following a >page with a form on it, when the form's method set to 'POST'. > >Id $ttl_price a single value or an array? > >If you are not using a form, you could possibly pass the value on the query >string, then use $_GET[] in your target page to retrieve the value from the >query string. This doesn't require the presence of a form on your >originating page. > >Otherwise, you could also use sessions to put the value into a session >cookie and then retrieve it from the target page, using the $_SESSION >superglobal. > >How are you moving from the page in which the calculation is done to the >page in which you need the calculation? Ie, do you click on a button, a >link, do you redirect to the page etc? > >Much warmth, > >Murray > > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 to make it a form? I would greatly appreciate any help you > could > offer. The $_POST[] superglobal is only available to a page directly following a page with a form on it, when the form's method set to 'POST'. Id $ttl_price a single value or an array? If you are not using a form, you could possibly pass the value on the query string, then use $_GET[] in your target page to retrieve the value from the query string. This doesn't require the presence of a form on your originating page. Otherwise, you could also use sessions to put the value into a session cookie and then retrieve it from the target page, using the $_SESSION superglobal. How are you moving from the page in which the calculation is done to the page in which you need the calculation? Ie, do you click on a button, a link, do you redirect to the page etc? Much warmth, Murray -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Need some help
You could use a form -- but since this is a db maillist -- maybe you ought to explore that on one of the other php lists e.g. general. Mark Cain - Original Message - From: "ReClMaples" <[EMAIL PROTECTED]> To: "Philip Hallstrom" <[EMAIL PROTECTED]> Cc: "PHP" Sent: Wednesday, 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 to make it a form? I would greatly appreciate any help you could > offer. > > Thanks > -rich > > -Original Message- > From: Philip Hallstrom [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 11, 2005 4:36 PM > To: ReClMaples > Cc: PHP > Subject: Re: [PHP-DB] Need some help > > > I am having an issue with displaying a variable from another php script. > > Can you help please? > > > > Here is the code that I'm using: > > > > > > > $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 form's action is GET then you should replace POST with > GET... > > > > > > ?> > > > > > > Your price is: $ > > > echo $item_ttlprice; > > ?> > > > > > > > > pretty simple I would think but I can't figure out what I'm doing wrong. > > The above is the new script. Below is the script that the $ttl_price is > > coming from: > > > > td align=center>\$ $item_price > >$item_qty > >\$ $total_price > > > href=\"removefromcart.php?id=$id\">remove > >"; > > $ttl_price = $ttl_price + $total_price; > > > > > > Can anyone tell me what I'm doing wrong? > > > > I have tried changing this part: > > > > > > > $item_ttlprice = $_POST[$ttl_price]; > > ?> > > > > to $item_ttlprice = $_GET[ttl_price]; > > > > to $item_ttlprice = $_POST['$ttl_price']; > > > > nothing seems to work. > > > > > > Thanks for your help > > -Rich > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 to make it a form? I would greatly appreciate any help you could offer. Thanks -rich -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:36 PM To: ReClMaples Cc: PHP Subject: Re: [PHP-DB] Need some help > I am having an issue with displaying a variable from another php script. > Can you help please? > > Here is the code that I'm using: > > > $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 form's action is GET then you should replace POST with GET... > ?> > > > Your price is: $ > echo $item_ttlprice; > ?> > > > > pretty simple I would think but I can't figure out what I'm doing wrong. > The above is the new script. Below is the script that the $ttl_price is > coming from: > > td align=center>\$ $item_price >$item_qty >\$ $total_price > href=\"removefromcart.php?id=$id\">remove >"; > $ttl_price = $ttl_price + $total_price; > > > Can anyone tell me what I'm doing wrong? > > I have tried changing this part: > > > $item_ttlprice = $_POST[$ttl_price]; > ?> > > to $item_ttlprice = $_GET[ttl_price]; > > to $item_ttlprice = $_POST['$ttl_price']; > > nothing seems to work. > > > Thanks for your help > -Rich > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Need some help
I am having an issue with displaying a variable from another php script. Can you help please? Here is the code that Im using: $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 form's action is GET then you should replace POST with GET... ?> Your price is: $ pretty simple I would think but I cant figure out what Im doing wrong. The above is the new script. Below is the script that the $ttl_price is coming from: td align=center>\$ $item_price $item_qty \$ $total_price remove "; $ttl_price = $ttl_price + $total_price; Can anyone tell me what Im doing wrong? I have tried changing this part: $item_ttlprice = $_POST[$ttl_price]; ?> to $item_ttlprice = $_GET[ttl_price]; to $item_ttlprice = $_POST[$ttl_price]; nothing seems to work. Thanks for your help -Rich -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Need some help
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 phpinfo(); Mark Cain - Original Message - From: "ReClMaples" <[EMAIL PROTECTED]> To: "PHP" Sent: Wednesday, May 11, 2005 3:14 PM Subject: [PHP-DB] Need some help > Hello all, > >I am having an issue with displaying a variable from another php script. > Can you help please? > > Here is the code that I'm using: > > > $item_ttlprice = $_POST[$ttl_price]; > ?> > > > Your price is: $ > echo $item_ttlprice; > ?> > > > > pretty simple I would think but I can't figure out what I'm doing wrong. > The above is the new script. Below is the script that the $ttl_price is > coming from: > > td align=center>\$ $item_price > $item_qty > \$ $total_price > href=\"removefromcart.php?id=$id\">remove > "; > $ttl_price = $ttl_price + $total_price; > > > Can anyone tell me what I'm doing wrong? > > I have tried changing this part: > > > $item_ttlprice = $_POST[$ttl_price]; > ?> > > to $item_ttlprice = $_GET[ttl_price]; > > to $item_ttlprice = $_POST['$ttl_price']; > > nothing seems to work. > > > Thanks for your help > -Rich > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Need some help
Hello all, I am having an issue with displaying a variable from another php script. Can you help please? Here is the code that Im using: Your price is: $ pretty simple I would think but I cant figure out what Im doing wrong. The above is the new script. Below is the script that the $ttl_price is coming from: td align=center>\$ $item_price $item_qty \$ $total_price remove "; $ttl_price = $ttl_price + $total_price; Can anyone tell me what Im doing wrong? I have tried changing this part: to $item_ttlprice = $_GET[ttl_price]; to $item_ttlprice = $_POST[$ttl_price]; nothing seems to work. Thanks for your help -Rich
Re: [PHP-DB] R6025 Error. .
Ng Hwee Hwee wrote: hi all, this R6025 error is driving me nuts!!! anyone who can help me? thanx a million!! Full error details are described here: http://support.microsoft.com/default.aspx?scid=kb;en-us;125749 To the best of my knowledge and after some googling, I found three possible causes for this error in internet explorer: 1) A javascript in your page is generating the error. 2) A plugin you are using in internet explorer is causing the error. 3) Some application is causing the error when it interacts with Internet explorer or vice versa (eg. office toolbar, acrobat toolbar, norton av hooks etc). The only suggestion I have to troubleshoot this is to "shut" off each of these one by one and see if you can reproduce the error. I haven't experienced this myself, so I don't have more suggestions on fixing it. thanks, Aman Patel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php