www.webdeveloper.com
Results 1 to 2 of 2

Thread: Adding to cart and sending cart

  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Adding to cart and sending cart

    I have made some picture galleries, and now I'd want to ad a functionallity, so people can request me to send them the image. For that I'd want to have a button beneath every picture, which will add that picture's name to the cart/list. When they're done, they need to click the send button and the list is submitted to me.

    Is this possible with a frames page, with in one frame the images and in the other the list, or should I make a seperate page on which you see the list and can click the submit button?

    What's the best way to do this? I've read some online HTML manuals, but I can't figure it out

    Thanx in advance

  2. #2
    Join Date
    Feb 2006
    Posts
    520
    Form would look something like this:
    PHP Code:
    <form name="form1" method="post" action="youSubmitPage.html">
    <
    table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <
    tr align="center">
        <
    td><img src="img1.jpg" width="100" height="100"></td>
        <
    td><img src="img2.jpg" width="100" height="100"></td>
        <
    td><img src="img3.jpg" width="100" height="100"></td>
        <
    td><img src="img4.jpg" width="100" height="100"></td>
      </
    tr>
      <
    tr align="center">
        <
    td><input type="checkbox" name="checkbox" value="img1.jpg"></td>
        <
    td><input type="checkbox" name="checkbox2" value="img2.jpg"></td>
        <
    td><input type="checkbox" name="checkbox3" value="img3.jpg"></td>
        <
    td><input type="checkbox" name="checkbox4" value="img4.jpg"></td>
      </
    tr>
      <
    tr align="center">
        <
    td><img src="img5.jpg" width="100" height="100"></td>
        <
    td><img src="img6.jpg" width="100" height="100"></td>
        <
    td><img src="img7.jpg" width="100" height="100"></td>
        <
    td><img src="img8.jpg" width="100" height="100"></td>
      </
    tr>
      <
    tr align="center">
        <
    td><input type="checkbox" name="checkbox5" value="img5.jpg"></td>
        <
    td><input type="checkbox" name="checkbox6" value="img6.jpg"></td>
        <
    td><input type="checkbox" name="checkbox7" value="img7.jpg"></td>
        <
    td><input type="checkbox" name="checkbox8" value="img8.jpg"></td>
      </
    tr>
      <
    tr align="center">
        <
    td colspan="4">
          
    Name:
          <
    input name="name" type="text" id="name"
          
    Email
          <
    input name="email" type="text" id="email">
          <
    input type="submit" name="Submit" value="Submit">    </td>
      </
    tr>
    </
    table>
    </
    form
    This would send data to you function page where you can plug the data into the email and have it sent to you or maybe insert data into the database.
    For this you will need your severside (ColdFusion, ASP, PHP), any of these you have available?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles