eduardo_consolacion Posted September 20, 2007 Share Posted September 20, 2007 how would you do this one... I have a page called categories.php it has the following: Categories Books(clickables) Magazines (clickables ) Toys(clickables) School Supplies (clickables) when i click the books it iwll go to another page called books.php in it it has all the different kinds of books: Books picture of the book picture of the book1 Name: Horror Name:Sci-fi (clickables) Price: $30 Price: $3 picture of the book picture of the book1 Garden Music Price: $53 Price: $301 When click on one of the books like "Horror" it will display on another page called horror.php it will have a : A Book Picture Name of the Book: Harry Potter Description: Children's Book Price: $350 corresponding on the price that was placed on the page. Then i will have a view_purchased.php having: qty item name price description total 2 harry potter $350 Children's book $700 questions: 1)how would you pass the value to the next page, having retaining the value that was placed on the page? 2)Either you can click the name or picture book picture of the book(clickables) picture of the book1(clickables) Name: Horror (clickables) Name:Sci-fi (clickables) Price: $30 Price: $3 and may be placed tp another page so it can be viewed. A Book Picture Name of the Book: Harry Potter Description: Children's Book Price: $350 how would you do this? 3) how would you pass the necessary information like this: qty item name price description total 2 harry potter $350 Children's book $700 and can calcualte the price using the PHP LAnGUAGE? Please do help me with this one? Quote Link to comment https://forums.phpfreaks.com/topic/70006-how-would-you-do-this-one/ Share on other sites More sharing options...
Barand Posted September 20, 2007 Share Posted September 20, 2007 For that last bit <?php $price = 350; $qty = 2; $total = $qty * $price; echo $total; I found this useful when I first started http://www.sitepoint.com/article/publishing-mysql-data-web Quote Link to comment https://forums.phpfreaks.com/topic/70006-how-would-you-do-this-one/#findComment-351664 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.