PHP Function Page Advice
Posted on
16th Feb 2014 07:03 pm by
admin
Hi All, I am quite new to PHP and Javascript but have written an Online Shop (Mainly for Fun and education)
It uses MySQL for the Shop Item Data and a 'Username.txt' file for each users cart. (Formated as 'ItemID1xQty1, ItemID2xQty2' etc....
Did you know?Explore Trending and Topic pages for more stories like this.
From the Cart View window, the user can edit the Quantity (Form text field).
When the 'Update Cart' Form button is clicked, a Javascript function;
re-calculates the monetry valuesdisplays the changesCreates a String containing the new cart dataCalls a PHP page (cart_update.php), that writes the Data to the UserName.txt file
This all works fine, except......
cart_update.php needs to do it's stuff and close. - But it doesn't close so the user is left with a blank window that has to be closed manually.
The cart data is posted from hidden form elements to cart_update.php.
using javascript to close the window results in the 'Do you want To Close this Window' message..
using JS History or $_SERVER['HTTP_REFERER'] refreshes the Cart View window to its pre-edited state
Is there a way round this..?
Can I put the cart_update.php code somewhere other than a .php page?
So close but so far..
Any help will be greatly appreciated..
No comments posted yet
Your Answer:
Login to answer
294
45
Other forums
Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp
please help
HTML Code:
Code: <span id="ctl00"><span>
Ball movement
I want to move a ball from one point to another and it should hit a group of balls at the other end
Doubles are giving me problems
Ok so, first of all i made a double = 0.05, but when running the debugger it shows up as 0.04999. I
Parse error: syntax error, unexpected T_ELSEIF in /home/......html/item.php on l
I do not know what is wrong with this. Hope some one can help. I do nto want to post the entire site
SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign
Receive Rosettanet Message to SAP 4.6c
Dear all ,
My customer will send the PO details by rosettanet message , Is it
phpMailer will not connect using SMTP
I am trying to use phpMailer with smtp:
Code: [Select]$mailer = new PHPMailer();
$mailer-&
Navigation include for all site directories
Hi,
I need a navigation include that can deal with directories at different levels on a site.
change text color with a jQuery code
Hihow can I change the text in a asp:TextBox to a different color when I start typing using jQuery?I