Results 1 to 3 of 3

Thread: formaction to external page

  1. #1
    Join Date
    Jun 2012

    Question formaction to external page


    I have a quick question.
    I've made a form with two submit buttons, one for emailing and one for printing.
    I try to make the one for printing open on a external page with formaction.

    How can I do this?

    This is what is have:
    HTML Code:
    <input type="submit" formaction="print.php" value="Print page">
    I hope that somebody can help me.

    With kind regards,


  2. #2
    Join Date
    Aug 2004
    Simplest thing would be to make them two separate forms with separate action attributes. (You can use CSS styling to float them side-by-side or however you want them to appear.)
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Mar 2012
    Bear in mind that formaction does not work on IE9 and below. You might not think that matters, but, according to W3Counter they, collectively, still account for 12.6% of global web usage. That is more than Safari, Firefox and Android individually (though not collectively). I doubt you would think those browsers do not matter.

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