Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Move/delete Image On Webpage Automatically?
kvarnerexpress
post Dec 19 2004, 11:00 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



Hi,
Im creating a website that sells carpets and basically ive created webpages with the picture and checkboxes underneath the pictures so users can select which carpet they want!
Once they submit the form, we get the order including form details!
The problem is that once the user checks the checkboxes, i want to be able to delete that image from that webpage or move that picture to another location in the folders i have stored on the server. The reason is becuase evry carpet is unique so that two people cant order the same carpet!
Now wat is the best way 2 do this.....
Using a database or can this be done using sumat like javascript or sumat?
Thanks in advanced!
Go to the top of the page
 
+Quote Post
no9t9
post Dec 20 2004, 12:29 AM
Post #2


Privileged Member
*********

Group: Members
Posts: 773
Joined: 4-November 04
Member No.: 2,118



QUOTE(kvarnerexpress @ Dec 19 2004, 07:00 PM)
Hi,
Im creating a website that sells carpets and basically ive created webpages with the picture and checkboxes underneath the pictures so users can select which carpet they want!
Once they submit the form, we get the order including form details!
The problem is that once the user checks the checkboxes, i want to be able to delete that image from that webpage or move that picture to another location in the folders i have stored on the server. The reason is becuase evry carpet is unique so that two people cant order the same carpet!
Now wat is the best way 2 do this.....
Using a database or can this be done using sumat like javascript or sumat?
Thanks in advanced!
*



i think the easiest way is to use php. I am not sure how many carpets there are and how the you display them, but with php you can write a script to display whatever is in the "carpets" directory and then add exclusions.

So, when someone submits a form to buy a particular carpet, the php script for the form can also change the file extension to "sold" (or whatever). When the carpet display php script goes to display all the carpets, tell it to skip all "sold" extensions... if !(strstr($filename,'.sold')) { display some html stuff here }

i'm not sure how much php you know, but i can help you. I wrote a similar script to display images so that whatever images I put in that directory would get displayed. No need to update html code... just upload the file into the directory.
Go to the top of the page
 
+Quote Post
m33
post Dec 22 2004, 06:16 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 60
Joined: 22-December 04
Member No.: 2,867



you can also just redirect it to the same page without the pics on it, that's easyer (dunno how good you are at PHP and all that)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. My First Image(12)
  2. Couple Of Image Minipulations(7)
  3. Image Weaver(0)
  4. For Anyone Who Wants To Have Compact Image Gallery(4)
  5. Design A Webpage(8)
  6. Image Splicer?(1)
  7. Webpage Design- Autodownloading Hosted Files(1)
  8. Rollover Image Tutorial(2)
  9. Avoid Image Download(6)
  10. Syndicated Image Feeds(0)
  11. Image Refresh(6)
  12. Blog Or Forum?(10)
  13. Image Galleries(10)
  14. Use Cell Background Image On Css?(2)
  15. Making A Scroll Bar In Flash(4)
  1. How Do You Enlarge An Image?(8)
  2. Hoverbox Image Gallery(1)
  3. Selecting Specific Part Of Image And Adding Description(6)
  4. Help Or Advise Needed For Access Database Webpage Conversions(0)
  5. Can't Delete A Folder On Server!(7)
  6. How Do I Put A Flash Image In My Website(10)
  7. Image Not Taking The Right Size In Web Page(1)
  8. Key Sounds In Text Box On Webpage(1)
  9. Image Anywhere(2)
  10. Image Calling Problem Solved(1)
  11. Cascading Windows(5)
  12. Flash Media Into Html/css Website(1)


 



- Lo-Fi Version Time is now: 6th October 2008 - 06:24 PM