The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

HTML Page Form Send Issue

View previous topic View next topic Go down

Solved HTML Page Form Send Issue

Post by TheConqueror#1330 on April 26th 2015, 4:14 pm

Technical Details


Forum version : phpBB3
Position : Administrator
Concerned browser(s) : Internet Explorer
Who the problem concerns : All members
When the problem appeared : Today
Forum link : http://monstrosity.forumotion.com/

Description of problem

I've created a form which gives the users some options to send to me via email. When you click send, Microsoft Outlook gets pulled out and the email does not contain the info from the form, so the data does not get sent to me. What must I do to achieve that?

Also, is there an option other than email that would work with this forum. Perhaps a private message in the forum instead? Ive reviewed some HTML guides and have not gotten anywhere.



<form action="mailto:myemail@gmail.com" method="post" enctype="text/plain">

<legend>Player info</legend>
Battle.net Id:<br>
<input type="text" name="id">
<br><br>

Which role do you want to play?(Pick 1 or 2 only)<br>
Assassin<input type="checkbox" name="role" value="Assassin"><br>
Specialist<input type="checkbox" name="role" value="Specialist"><br>
Support<input type="checkbox" name="role" value="Support"><br>
Tank<input type="checkbox" name="role" value="Tank">

<br><br>Additional Info(Include 4 favorite Heroes):<br><textarea name="comments" rows="6"
cols="65"></textarea><br><br>

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

TheConqueror#1330
New Member

Posts : 13
Reputation : 1
Language : English

http://monstrosity.forumotion.com/

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by Ange Tuteur on April 26th 2015, 9:50 pm

Hi,

You can pretty much recreate an form on the forum, provided you know how to inspect the source code. Here's an example of sending a PM to 1 specific person :
Code:
<form action="/privmsg" method="post" name="post" enctype="multipart/form-data">
  <fieldset>
    <dl>
      <dt><label for="pm-title">Subject : </label></dt>
      <dd><input id="pm-title" type="text" name="subject"/></dd> <!-- The subject is required, much like any input you can assign a default value with the value attribute ( value="my title" ) -->
    </dl>
     
    <dl>
      <dt><label for="pm-msg">Message : </label></dt>
      <dd><textarea id="pm-msg" name="message"></textarea></dd> <!-- You can insert automatic values by typing between the textarea tag -->
    </dl>
   
    <div style="text-align:center;">
      <input type="hidden" name="username[]" value="Ange Tuteur"/> <!-- the value contains the name of the member this PM will be sent to -->
      <input type="submit" name="post" value="send"/> <!-- clicking this sends the message -->
    </div>
  </fieldset>
</form>

The HTML should go in an HTML page. I've added comments to explain, but if you have any questions, feel free.

Note : You should disable the following security setting.
General > Forum > Security > Unauthorize unofficial forms to post messages and private messages on the forum

Otherwise, you will encounter a small error.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by TheConqueror#1330 on April 27th 2015, 2:53 pm

Thanks!


One More Question:


I've been trying to align the text boxes to be positioned right next to 'Subject" and "Message" using align = "left" but I cant seem to get it correct. As of right now the text boxes are almost all the way to the right of the screen and the text "Subject" and "Message" are all the way to the left. I've also tried to move around:
<div style="text-align:Left;">, but have had no success. What's the trick to this?



http://monstrosity.forumotion.com/

TheConqueror#1330
New Member

Posts : 13
Reputation : 1
Language : English

http://monstrosity.forumotion.com/

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by Ange Tuteur on April 27th 2015, 4:41 pm

That's from the dl, dt, and dd tags. You can remove them if you like. Here' a set with them removed.
Code:
<form action="/privmsg" method="post" name="post" enctype="multipart/form-data">
  <label for="pm-title">Subject : </label>
  <input id="pm-title" type="text" name="subject"/> <!-- The subject is required, much like any input you can assign a default value with the value attribute ( value="my title" ) -->
   
  <label for="pm-msg">Message : </label>
  <textarea id="pm-msg" name="message"></textarea> <!-- You can insert automatic values by typing between the textarea tag -->
 
  <div style="text-align:center;">
    <input type="hidden" name="username[]" value="Ange Tuteur"/> <!-- the value contains the name of the member this PM will be sent to -->
    <input type="submit" name="post" value="send"/> <!-- clicking this sends the message -->
  </div>
</form>

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by TheConqueror#1330 on April 27th 2015, 5:01 pm

Perfect! Thanks!

TheConqueror#1330
New Member

Posts : 13
Reputation : 1
Language : English

http://monstrosity.forumotion.com/

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by Ange Tuteur on April 27th 2015, 5:15 pm

You're welcome ^^

Topic archived

Have a nice day. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum