/    Sign up×
Community /Pin to ProfileBookmark

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:

[code=html]<input type=”submit” formaction=”print.php” value=”Print page”>[/code]

I hope that somebody can help me.

With kind regards,

Tymen

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogAug 20.2014 — 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.)
Copy linkTweet thisAlerts:
@jedaisoulAug 20.2014 — Bear in mind that formaction does not work on IE9 and below. You might not think that matters, but, according to [url=http://www.w3counter.com/globalstats.php]W3Counter[/url] 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.
×

Success!

Help @-qwerty- spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...