+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
Coding Thread, email from to pdf file? in Coding and Web Development; i have made a email form for my works website, booking form- Penny Car Hire ) and have just been ...
  1. #1

    Join Date
    Apr 2010
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    email from to pdf file?

    i have made a email form for my works website, booking form- Penny Car Hire) and have just been told that now they want the infomation gathered on the from to automaticly go into a file they have made so it can be printed easily will all boxes filled out. Is it possible. the titel says pdf but it dosent have to be I only put it as that as that is the file type of the sheet they have given me.
    attached is the form. can the infomaton be take off the email form and but streight into the document.


    thanks

    chris
    Attached Files Attached Files

  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,873
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838
    I'd be thinking 'HTML email' myself, and get the server to generate the form in HTML format, with the data in it. What server side languages are available to you?

  3. #3

    Join Date
    Apr 2010
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    website is curently in html, can do javascript as well as php. not sure about any others

  4. #4

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    How are you at using PHP? It should be pretty simple to write up a PHP script to write the info in to either an HTML email (as suggested by localzuk) or a new page ready to be printed. Alternatively, layout the initial page how you want it and just add a 'Print' button to the bottom of the page....

  5. #5

    Join Date
    Apr 2010
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    have not used php yet, but can lern. have set up an html email form it all works fine, but now my boos has decided he want it to go onto something like the file attached onto the first post.

  6. #6

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    HTML email is definitely the way to go I think, take a look at these pages to get you on the right track

    PHP: A simple tutorial - Manual
    PHP Passing Variables Across Pages
    Sending Nice HTML Email with PHP | CSS-Tricks

  7. #7

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,873
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838
    Quote Originally Posted by chrisboots View Post
    have not used php yet, but can lern. have set up an html email form it all works fine, but now my boos has decided he want it to go onto something like the file attached onto the first post.
    You need to create a php script which generates an email, with the contents being the file layout you wanted. This site gives some insight into using PHP to send email in HTML format: Advanced email in PHP as does this thread php: simple code to send HTML email - Web Hosting Talk

  8. #8

    Join Date
    Apr 2010
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    have had a quick look at the link, this may take some time!!!. why isint it easy

  9. #9

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,873
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838
    Quote Originally Posted by chrisboots View Post
    have had a quick look at the link, this may take some time!!!. why isint it easy
    Because creating advanced functionality in a site is a complex process usually undertaken by programmers, rather than web designers.

  10. #10

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    Quote Originally Posted by chrisboots View Post
    have had a quick look at the link, this may take some time!!!. why isint it easy
    PHP is pretty easy once you get to grips with it, and if you put the time in to learn to use it (I'd also look at SQL if you have time) your future websites will be infinitely more efficient, effective and easy to maintain than before

  11. #11

    Join Date
    Apr 2010
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    just spoke to my boss and he has said, is it possible for it to come to use like it is on the website. All the stuff in boxes ect ect. is that posiible, rather than coming in a email like:
    firstname:chris
    surname:boots
    ect.ect.

  12. #12

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,873
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838
    Quote Originally Posted by chrisboots View Post
    just spoke to my boss and he has said, is it possible for it to come to use like it is on the website. All the stuff in boxes ect ect. is that posiible, rather than coming in a email like:
    firstname:chris
    surname:boots
    ect.ect.
    Only by creating a custom PHP script to do it for you - it is not a simple click job.

  13. #13

    Join Date
    Apr 2010
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    damn it!!. do you have any other suggestions on how to do it. it doestn have to be to a pdf. it could be anything that we can print that will look like the attached file ?

  14. #14
    SteveBentley's Avatar
    Join Date
    Jun 2007
    Location
    Yorkshire
    Posts
    1,439
    Thank Post
    120
    Thanked 263 Times in 189 Posts
    Rep Power
    72
    Might be possible if you put some HTML into the email to create tables.

    Only other thing I can think of is have the form submit the user input into a database, and then use the Access to query the database (over ODBC) and put it into a nice looking form. Not a very elegant solution though!

  15. #15

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,873
    Thank Post
    518
    Thanked 2,486 Times in 1,928 Posts
    Blog Entries
    24
    Rep Power
    838
    Quote Originally Posted by chrisboots View Post
    damn it!!. do you have any other suggestions on how to do it. it doestn have to be to a pdf. it could be anything that we can print that will look like the attached file ?
    Sorry but there is simply no quick and easy way of doing it. It is definitely a custom coding job. What we have been suggesting is the quickest way of doing it, ie. the email is sent in HTML format to the end user instead of in text format. (Not in PDF, that would make it even more complex).

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. OpenOffice3 to have PDF edit, Email, Calendar, etc...
    By mark in forum Educational Software
    Replies: 3
    Last Post: 28th January 2008, 07:40 PM
  2. changing email address in pdf doc's
    By dave-a in forum Windows
    Replies: 4
    Last Post: 14th May 2007, 10:10 AM
  3. PDF file edit
    By danIT in forum General Chat
    Replies: 2
    Last Post: 20th September 2006, 09:00 AM
  4. pdf file editting
    By russdev in forum Windows
    Replies: 7
    Last Post: 27th September 2005, 01:45 PM

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
  •