Page 1 of 1

Includes

Posted: Sat Mar 24, 2007 9:11 pm
by gfirman
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!

Posted: Sat Mar 24, 2007 9:25 pm
by John Cartwright
We encourage our users to try things for themselves before asking questions. It is only curteous that you try and resolve issues on your own first before asking someone else to put the time in to solve your concern.

Since I'm already typing.. yes it's possible.

Posted: Sat Mar 24, 2007 10:28 pm
by gfirman
Thanks for that