Includes
Posted: Sat Mar 24, 2007 9:11 pm
Hi,
I am trying to execute a block of code which is the same in many different pages.
This is a simplified example of what i am doing........
I want to buy a flash drive so I have a page for that.
Then I have another page, when the BUY button is clicked, it shows cost and quantity bought etc.
So I want to update the money for the users account.
Would it be possible to have this code in an include and pass the cost to the include (block of code) to update the money?
Any suggestions would be helpful........thanks!
I am trying to execute a block of code which is the same in many different pages.
This is a simplified example of what i am doing........
I want to buy a flash drive so I have a page for that.
Then I have another page, when the BUY button is clicked, it shows cost and quantity bought etc.
So I want to update the money for the users account.
Would it be possible to have this code in an include and pass the cost to the include (block of code) to update the money?
Any suggestions would be helpful........thanks!