www.webdeveloper.com
Results 1 to 3 of 3

Thread: formaction to external page

  1. #1
    Join Date
    Jun 2012
    Posts
    6

    Question formaction to external page

    Hello,

    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,

    Tymen

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,338
    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.)
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Mar 2012
    Posts
    1,528
    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



Recent Articles