son Posted December 6, 2009 Share Posted December 6, 2009 Is there any function to grab all content in main area of website (div with id = content) to be used in mail function?Son Link to comment Share on other sites More sharing options...
thescientist Posted December 7, 2009 Share Posted December 7, 2009 you might need javascript for that. Or use use a textarea. Link to comment Share on other sites More sharing options...
son Posted December 7, 2009 Author Share Posted December 7, 2009 you might need javascript for that. Or use use a textarea.Unfortunately, client does not want any javascript. Maybe there is another option when I explain what it is for. I have this simple cart application: Now the client wants that you click below onto an extra option which is called 'send button', then the content of cart page is again displayed on this new page with options to enter name, address, email address to be emailed to give address (obviously once submit is pressed)... How would you normally do this?Son Link to comment Share on other sites More sharing options...
jlhaslip Posted December 7, 2009 Share Posted December 7, 2009 Can you simply send a link to the page via mail? Link to comment Share on other sites More sharing options...
son Posted December 7, 2009 Author Share Posted December 7, 2009 Can you simply send a link to the page via mail?Thanks for offer. Sent you a message.Son Link to comment Share on other sites More sharing options...
justsomeguy Posted December 7, 2009 Share Posted December 7, 2009 I think he meant to email the user a link to the page instead of emailing them the entire page. Otherwise, it would be a lot easier to recreate the content for the email instead of getting it from another page. Link to comment Share on other sites More sharing options...
son Posted December 7, 2009 Author Share Posted December 7, 2009 I think he meant to email the user a link to the page instead of emailing them the entire page. Otherwise, it would be a lot easier to recreate the content for the email instead of getting it from another page.I got this totally wrong then|-) What would you then do normally on a cart page when there should be an option for people who do not want to pay online, but want to send out an email request to website owner that includes all that is displayed in cart plus few personal entries as address, email, so they can reply to him/her?Son Link to comment Share on other sites More sharing options...
justsomeguy Posted December 7, 2009 Share Posted December 7, 2009 I would generate the email content the same way I generated the page content. Link to comment Share on other sites More sharing options...
son Posted December 7, 2009 Author Share Posted December 7, 2009 I would generate the email content the same way I generated the page content.And store in $S for example $S = "";to be sent in main function (mail($to,$subject,$S,$headers))?SonHad to edit as I did not realise it would show an icon after my mail function example... Link to comment Share on other sites More sharing options...
justsomeguy Posted December 7, 2009 Share Posted December 7, 2009 Right. Link to comment Share on other sites More sharing options...
son Posted December 8, 2009 Author Share Posted December 8, 2009 Right.Will give this a go...Son Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.