|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Cart form tag numbering
Hello,
I have a problem that seems huge to me, being a non programmer, but maybe someone in your group has a thought about it? I would sure appreciate it! I don't know anything about using PHP and don't know if it's even the right solution. I use Dreamweaver 4. I am developing a website for my photography company and have Adobe Online Photo Album to generate web galleries for my clients to view their photos from their event. I am using Americart (but not stuck on that) for the shopping cart. The Photo Album does a fine job of generating the albums, but I need to automate the shopping cart add in peice. I did it manually for 80 photos and it took forever. In other words, I have an easy table containing the 4 sizes of photos they can purchase of the photo above, each of the sizes an "add to cart" button within the table, within a form tag. The tedious part is that I then have to go in an change each photo number within the form tag for each photo, for each of the four sizes. There must be a way to have the shopping cart table, just a small bit of code, to take the first photo number and automatically increase each number by one within each form tag, for each size. In other words, I want that table which actually has four form tags within it, one for each size, to automatically increase the photo number by one and drop itself into the designated spot on my already generated html pages which have been generated by Online Photo Album. Doesn't it seem that there would be a relatively straightforward way to do this? Given that I will have many rolls per week of film to get onto my site, I just can't see spending several hours each roll to change all those photo numbers in each table... Any help would be so VERY VERY much appreciated!! THANKS IN ADVANCE FOR ANY THOUGHTS! Even just some direction about what universe of code this solution would live in would be helpful! The sample photo album I have created which I hand coded the shopping cart is at http://www.tri-visions.com/clientaccess/neil/index.html Laura van Hoff Lvanhoff@sbcglobal.net www.tri-visions.com |
|
#2
|
|||
|
|||
|
sure there is an easy way to do it.
you can do it with php and must change your pages to .php or send .html through php processor place this code in your page. PHP Code:
then for your images,...use this PHP Code:
__________________
-- Jason |
|
#3
|
|||
|
|||
|
Jason,
Sorry to be so uninformed but I have never had any experience whatsoever with PHP. Can you give me a bit more of an overview on that concept? It's exactly what I was looking for, but I don't understand how to impelement it. Could you perhaps show me with my page where and how I would utilize this? I have upgraded to Dreamweaver MX and it looks like it has an easy way to incorprate PHP but I don't have the foggiest clue about PHP...I'd like to learn though. Thanks so much in advance for your help and for the suggestion offered. |
|
#4
|
|||
|
|||
|
I think you are looking for a dynamic solution,....but what you asked for is only the tip of the iceberg
![]() the code I posted,.. PHP Code:
All this does is print your image tag and add the "_1" to it automatically. I think what you are looking for a an image upload script,...or maybe something that will parse through an image directory and rename the files to filename_01.jpg, etc, etc. try looking on www.devscripts.com |
|
#5
|
|||
|
|||
|
Thanks...much appreciated.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Cart form tag numbering |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|