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 Form and posting.

2 posters

Go down

form - HTML Form and posting. Empty HTML Form and posting.

Post by Takeru Takahashi March 3rd 2012, 8:10 pm

Hello, at beginning i want to say, that i dont live in English Speaking country, so... please be tolerant ^^

I have small problem with form. I want form, that can user easily fill and then send as post to thread. I mean, for example I fill information about my RP character (name, gender, birthday, etc) and then I can send it as post to thread, but I dont know, how can I do it. I actually have HTML code (my HTML is not so good, it can be probably only big fail (i think my HTML code)) with form, but when i want to send it, it redirects me to forum and then I see only "You must choose Topic, where you want to response" (Im sorry, I dont know, how it can be in English, I tried best translation) and nothing happen. Can someone please help me? It can be really good for me, if it works ^^ Thx to everyone Smile

HTML Code:
Code:
<form action="/post" method="post">

<fieldset>
<legend>Potvrzení Technik</legend>
Postava:   
<input size=20><br>
Technika: 
<input size=20><br>
Typ:         
<input size=20><br>
Třída:       
<input size=20><br>
Účinek:     
<input size=20><br>
Popis:       
<input size=20><br></fieldset>
<input type="hidden" name="lt" value="13138">
<input type="hidden" name="auth[]" value="6c4d97905afdf1872894e47a201aff97">
<input type="hidden" name="auth[]" value="ec98d707580d3abc4abd293149a14ae3">
<input type="hidden" name="mode" value="reply">
<input class="mainoption" type="submit" name="post" value="Send" tabindex="6" accesskey="s">
</form>
avatar
Takeru Takahashi
New Member

Posts : 3
Reputation : 1
Language : Czech Republic

Back to top Go down

form - HTML Form and posting. Empty Re: HTML Form and posting.

Post by LGforum March 4th 2012, 3:15 am

You'll need a hidden input with name of 't' and the value is the topid ID.

Also, these inputs;
<input type="hidden" name="lt" value="13138">
<input type="hidden" name="auth[]" value="6c4d97905afdf1872894e47a201aff97">
<input type="hidden" name="auth[]" value="ec98d707580d3abc4abd293149a14ae3">

They change very often... so you can't have them fixed in html.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

form - HTML Form and posting. Empty Re: HTML Form and posting.

Post by Takeru Takahashi March 4th 2012, 9:55 am

Yaaa ^_^ Thanks you very much (bow). Ok, then i'll delete them, if I cant have them fixed. I also add a new "tag" to my html, now it looks like this.

Code:
<form action="/post" method="post">

<fieldset>
<legend>Potvrzení Technik</legend>
Postava: 
<input size=20><br>
Technika:
<input size=20><br>
Typ:       
<input size=20><br>
Třída:     
<input size=20><br>
Účinek:   
<input size=20><br>
Popis:     
<input size=20><br></fieldset>

<input type="hidden" name="mode" value="reply">
<input type="hidden" value="568" name="t">
<input class="mainoption" type="submit" name="post" value="Send" tabindex="6">
</form>

But now, when I want to send it, forum says "You must fill text of post" or something like that (as i say, i must translate it xD So, if you dont understand, just say ^_^)
avatar
Takeru Takahashi
New Member

Posts : 3
Reputation : 1
Language : Czech Republic

Back to top Go down

form - HTML Form and posting. Empty Re: HTML Form and posting.

Post by LGforum March 4th 2012, 2:43 pm

Yes the main field needs to be a textarea. The name needs to be 'message'.
That is what the normal form has and needs mimicked.

It's possible to use input fields, but it would require some JavaScript to gather the info of them input fields and put them into one message field so it can send.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

form - HTML Form and posting. Empty Re: HTML Form and posting.

Post by Takeru Takahashi March 4th 2012, 5:41 pm

Eh, that sound so difficult T_T But i think forumotion support JavaScript... that means i need only to make some JavaScript, then make JavaScript page at my forum and then what? Link from HTML to JavaScript or something like that? And can you tell me please something about that Java? Just some little information, because i want to google it. Thank you for your time Smile
avatar
Takeru Takahashi
New Member

Posts : 3
Reputation : 1
Language : Czech Republic

Back to top Go down

form - HTML Form and posting. Empty Re: HTML Form and posting.

Post by LGforum March 4th 2012, 8:29 pm

You need to do more research into how HTML forms actually work. Not javascript.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Back to top

- Similar topics

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