/    Sign up×
Community /Pin to ProfileBookmark

Confirm Order Button to Email Javascript

Hello,

I am having a problem how to convert a form when clicking “Confirm Order!” button to go directly to email. I have been having problems but I do not know if this is the correct code for it. Is there anyone out there that could make a form button work direct to the email?

<form method=post action=”[email protected]” name=”emailform”>

<input type=hidden name=to value=”[email protected]“>
<input type=hidden name=subject value=”** Office Stationary **“>

<center>
<script language=”JavaScript”>
<!– Begin
decodeString();
// End –>
</script>
</center>
</form>[COLOR=orangered][COLOR=orangered][COLOR=blue][COLOR=blue][COLOR=limegreen]

Your replies are much appreciated.

Cheers

DaGa1976

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@JonaMay 17.2004 — <i>
</i>action="mailto:[email protected]"
Copy linkTweet thisAlerts:
@DaGa1976authorMay 17.2004 — Hi Jona,

I need to know one more thing. I changed the code to mailto like you suggested but the information become a nonsense attachment when I received it. This is the modified code. What I want is to have the order I clicked to be displayed on the email sent to me. How do you go about that? Please bear with me I am a beginner in Javascript.

<form method=post action="[email protected]" name = "emailform">

<input type=hidden name=to value="[email protected]">

<input type=hidden name=subject value="Office Stationary">

<center>

<script language="JavaScript">

<!-- Begin

decodeString();

// End -->

</script>

</center>

</form>

</center>


Your reply is much appreciated[COLOR=orangered][COLOR=orangered][COLOR=skyblue][COLOR=skyblue]



Cheers



DaGa1976
Copy linkTweet thisAlerts:
@JonaMay 17.2004 — [font=arial]This question would probably be better suited for the HTML forum; if a Moderator would move it, perhaps this user will get a better, faster response. (Note: this does not mean delete your post and post in the HTML forum.)

Add enctype="text/plain" to your form tag.[/font]
Copy linkTweet thisAlerts:
@DaGa1976authorMay 18.2004 — Hi Jona,

it is working like magic!

Cheers

DaGa1976
Copy linkTweet thisAlerts:
@JonaMay 18.2004 — [font=arial]Happy to help.[/font]
×

Success!

Help @DaGa1976 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 5.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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