|
|
|
|
![]() ![]() |
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! |
|
|
|
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. |
|
|
|
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)
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th October 2008 - 06:24 PM |