-1

I am making a delivery-form; I want that when I press a button the entire site will be captured and will be sent to a predefined email address. Is this possible to do? If so, how?

This is the site http://finefoodandwine.nl/Restaurant-Veldhoven/bestelformulier.php I also need to make that the buttons only appear when all the name and address details are filled in, but that's for later concern.

vascowhite
  • 18,120
  • 9
  • 61
  • 77
J Bom
  • 303
  • 1
  • 5
  • 21
  • 2
    You want the make an image from the whole site and mail the image? I can't believe anybody want that.. – Ron van der Heijden Sep 10 '12 at 13:59
  • indeed, I want the customer to have no hassle sending the required information to me. Well I only need the text, it would be ideal if I could get the picture to look like the print button. – J Bom Sep 10 '12 at 14:00
  • 1
    If you realy want this, I advice you to have a look at http://princexml.com/ This helps you to convert your HTML into PDF. This PDF you can send easy via PHP. – Ron van der Heijden Sep 10 '12 at 14:05

3 Answers3

2

i hope you don't want to make a screenshot to see the order. if so, just submit the values via php/mail.

Making a screenshot isn't impossible but it's very difficult, see https://stackoverflow.com/a/6678156/425005

Community
  • 1
  • 1
Martin Trenker
  • 167
  • 1
  • 8
1

No, this is not possible. The browser runs in a sandbox, and has (thank God) no access (html5: very limited access) to local resources.

JvdBerg
  • 21,777
  • 8
  • 38
  • 55
  • Alternatively, you could have your clients download a program to create a screenshot if that's an option. – user1477388 Sep 10 '12 at 14:02
  • I understand the concern about personal invasion, but it's either this or printing it out and handing it over personally, emailing it would make it much easier for them. – J Bom Sep 10 '12 at 14:02
  • @user1477388 than I could just make them ask to make a screenshot, and paste it in the mail. – J Bom Sep 10 '12 at 14:03
  • Everyone is emailing orders. What is so special in Veldhoven (I am in Helmond) that this cannot be done? – JvdBerg Sep 10 '12 at 14:05
  • 1
    `No, this is not possible` Tunnel vision – Ron van der Heijden Sep 10 '12 at 14:08
  • I am not sure I understand the requirement. If you want to capture a screenshot with PHP, you can do that like this http://www.google.com/search?q=php+screenshot&aq=f&sugexp=chrome,mod=1&sourceid=chrome&ie=UTF-8. If you want to capture what a user sees on the client's machine, you will have to have the user do it themselves, or click a button and take the screenshot with AJAX, PHP or something like that. – user1477388 Sep 10 '12 at 14:09
  • @JvdBerg I thought that was the (thank god) was ment for. – J Bom Sep 10 '12 at 14:09
1

This is not possible.

You need to process the data that the user has inserted into the form and send it away with PHP.

You can use the mail functions within PHP

http://php.net/manual/en/function.mail.php

E. van der Spoel
  • 260
  • 1
  • 15
  • I don't think the data processed by java, can be processed by doing this? But there is no smart solution besides asking the customer to screenshot their screen and paste it into the mail? – J Bom Sep 10 '12 at 14:11
  • 1
    Yes their is, get the data using [post](http://php.net/manual/en/reserved.variables.post.php) and process the data with the mail function. – E. van der Spoel Sep 10 '12 at 14:26