The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML Page Form Send Issue

2 posters

Go down

Solved HTML Page Form Send Issue

Post by TheConqueror#1330 Sun 26 Apr - 9:14

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>
avatar
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 Sun 26 Apr - 14:50

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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by TheConqueror#1330 Mon 27 Apr - 7:53

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/
avatar
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 Mon 27 Apr - 9:41

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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: HTML Page Form Send Issue

Post by TheConqueror#1330 Mon 27 Apr - 10:01

Perfect!  Thanks!
avatar
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 Mon 27 Apr - 10:15

You're welcome ^^

Topic archived

Have a nice day. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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