Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save and send

Status
Not open for further replies.

slobad23

IS-IT--Management
Joined
Jun 30, 2006
Messages
90
Location
GB
i have an html form that i want to be able to save with a button to a location which i want to specify in the code... so the file just has a date as it's title when it's saved. Is this possible to take the edited form and save it?

That is the first part... and if it can be done, probably the most easy part.

what i also want to be able to do is send the saved file from it's location that it just saved to, and send it as an email attachment.

i thought this might get around having to use CGI as i dont know a lot about it. I know that excel and word are able to send the files you have made as an attachment in an email and i have done no server side scripting to be able to do that... i was hoping java would have an answer.

If not, perhaps you could suggest something?

thank you in advance,

slobad
 
You're right -you do need a server side script to accomplish that. Can't be done with javascript.

Regards
 
in that case... could you please please please tell me how word is able to email it's contents as a .pdf attachment without me doing any of this server side scripting jazz?

If this really is the ONLY way to go about it... how difficult a task is it to do? i have limited time and don't want to throw it all into this only to find it's near impossible for my little brain ^_^

thanks,

slobad
 
Javascript can't create files.
-------------------------------
To save form data, the data is sent to a script on your host that can manipulate the data as you like and save it -on the server.

You can make a server side script that generates the pdf and then send it -from the server.

Can be done with perl, cgi, php, asp ...
-------------------------------
When creating and sending pdf's from office, it's done by applications on the users computer (most likely Acrobat and outlook). I don't use either.

Regards


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top