CreateMyBB Support Forums

Full Version: Form Submit to New Reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey there!

I am wanting to create a form, so that when you click submit, all the input in the form will create a new post in the thread. What do I put in the html to do this? Here is what Iv got, it is only a short one just to test it out etc

Quote:
<form action="newreply.php" method="post" enctype="multipart/form-data" name="input" onsubmit="return checkForm();">;<p>
  Your Gamertag : <select size="1" name="gtag">
  <option>Marcushblade87</option>
  <option>Mad Marky D</option>
  </select></p>
  <p>Week:<select size="1" name="D1">
  <option>1</option>
  <option>2</option>
  </select></p>
  <p>Match:<select size="1" name="D2">
  <option>Tottenham v Chelsea</option>
  <option>Man utd v Blackburn</option>
  </select></p>
  <p>Score:<input type="text" name="T1" size="20"></p>
  <p>&nbsp;</p>
  <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>



Btw, the form will appear at the begginning of the thread it will post in.
Reference URL's