1 Replies - 780 Views - Last Post: 10 December 2012 - 05:55 AM

#1 talkids  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-December 12

Submit form as a post

Posted 10 December 2012 - 05:46 AM

I created a form using Jotform. After user fill in the form, it was submitted to my email. I do not want that. I just want to make the filled form appear as a post in the forum, so that other users can see it.
So I hope someone can guide me by providing what and where is the changes do I need to make.

Here is the full html code from Jotform:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="HandheldFriendly" content="true" />
<title>Form</title>
<link href="http://max.jotfor.ms/min/g=formCss?3.1.1033" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="http://jotform.me/css/styles/nova.css?3.1.1033" />
<style type="text/css">
    .form-label{
        width:150px !important;
    }
    .form-label-left{
        width:150px !important;
    }
    .form-line{
        padding-top:12px;
        padding-bottom:12px;
    }
    .form-label-right{
        width:150px !important;
    }
    body, html{
        margin:0;
        padding:0;
        background:false;
    }

    .form-all{
        margin:0px auto;
        padding-top:20px;
        width:650px;
        color:#555 !important;
        font-family:'Lucida Grande';
        font-size:14px;
    }
</style>

<script src="http://max.jotfor.ms/min/g=jotform?3.1.1033" type="text/javascript"></script>
<script type="text/javascript">
   JotForm.init();
</script>
</head>
<body>
<form class="jotform-form" action="http://submit.jotform.me/submit/23443580526453/" method="post" name="form_23443580526453" id="23443580526453" accept-charset="utf-8">
  <input type="hidden" name="formID" value="23443580526453" />
  <div class="form-all">
    <ul class="form-section">
      <li class="form-line" id="id_1">
        <label class="form-label-left" id="label_1" for="input_1"> Age </label>
        <div id="cid_1" class="form-input">
          <input type="text" class="form-textbox" id="input_1" name="q1_age" size="20" />
        </div>
      </li>
      <li class="form-line" id="id_2">
        <div id="cid_2" class="form-input-wide">
          <div style="margin-left:156px" class="form-buttons-wrapper">
            <button id="input_2" type="submit" class="form-submit-button">
              Submit
            </button>
          </div>
        </div>
      </li>
      <li style="display:none">
        Should be Empty:
        <input type="text" name="website" value="" />
      </li>
    </ul>
  </div>
  <input type="hidden" id="simple_spc" name="simple_spc" value="23443580526453" />
  <script type="text/javascript">
  document.getElementById("si" + "mple" + "_spc").value = "23443580526453-23443580526453";
  </script>
</form></body>
</html>

This post has been edited by Dormilich: 10 December 2012 - 05:47 AM
Reason for edit:: please use [CODE] [/CODE] tags when posting code


Is This A Good Question/Topic? 0
  • +

Replies To: Submit form as a post

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3576
  • View blog
  • Posts: 10,441
  • Joined: 08-June 10

Re: Submit form as a post

Posted 10 December 2012 - 05:55 AM

well, then you have to write/get a script that does exactly that, insert the post into your forum. I would expect that the forum software you use has capabilities to do that, so you would need to check its documentation.

from the little information I get (they do not even provide me an about page) from Jotform (besides that the Session class is missing *g*) I guess that they only send the form data as email.

essentially, your post inserting script needs to go into the formís action attribute.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1