HTML Help with submit button

johnmck

New Member
Joined
Nov 27, 2006
Messages
43
Maybe not the right place to post this but i'm looking for a code that would work on a site where I have a submit button that does nothing.

I need it to, when pressed, send the information on the page by email to myself but I just don't know how? Any ideas?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Thanks for that but I'm at work and my browser only allows certain sites to be accessed and I cant access this site. Would you be able to paste the data in here? It's just simple HTML that I need for submit
 
Upvote 0
Sure, no problem :)

This is the code from the second link I posted:
Code:
<html>
<body>
<form action="MAILTO:someone@w3schools.com" method="post" enctype="text/plain">

<h3>This form sends an e-mail to W3Schools.</h3>
Name:

<input type="text" name="name"
value="yourname" size="20">


Mail:

<input type="text" name="mail"
value="yourmail" size="20">


Comment:

<input type="text" name="comment"
value="yourcomment" size="40">



<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>
</body>
</html>
 
Upvote 0
Nearly there lol. I basically need it to submit the data I have on my page. I have 4 radio buttons 2 text areas and 1 text box and I need it to send the data thats captured there.

Alternatively if we could get it to send like a screen shot of the page that would be just the same.
 
Upvote 0
It's been a while since I've really dealt much HTML (I gave up on maintaining what was a crap little website years ago ;) ), but I think I could cobble together an example what you're wanting.

You just need to return which button is selected and the text they entered, right? It shouldn't take long, I just need to figure out the coding :)
 
Upvote 0
Well, that code should do what you want. Just make sure you name the input controls, and for the radio buttons, specify the value of each one as below. And, of course, change the e-mail address in the code to yours ;)

Code:
<html>
<body>
<form action="MAILTO:someone@w3schools.com" method="post" enctype="text/plain">

Name:

<input type="text" name="Name"
value="yourname" size="20">



Mail:

<input type="text" name="Mail"
value="yourmail" size="20">



<input type="radio" name="RadioButton" value="1">1


<input type="radio" name="RadioButton" value="2">2


<input type="radio" name="RadioButton" value="3">3


<input type="radio" name="RadioButton" value="4">4



Comment:

<input type="text" name="Comment"
value="yourcomment" size="40">



<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>
</body>
</html>

So the e-mail generated from this form will display
Code:
name=[what the user entered for 'name' box]
mail=[what the user entered for 'mail' box]
radio=[the value of the radio button the user selected]
comment=[what the user entered for 'comment' box]
 
Upvote 0
We are nearly there :-D

Basically I need the sheet not to generate an e-mail but to directly submit the values or other to my inbox. This should be seamless for the person submitting the form and the should not see what happens after they hit submit.
 
Upvote 0
Ah--the *auto* e-mail thing. I wondered about that. It shouldn't take long to find that information, though (because I can't remember how ;) ). Off to Google! :)
 
Upvote 0

Forum statistics

Threads
1,225,267
Messages
6,183,950
Members
453,198
Latest member
VB6 Programming

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top