This is an example of an HTML form that submits data to directly to Centerbase.
<!-- A basic form that submits directly to Centerbase --> <!-- Note: replace test.centerbase.com with your Centerbase site URL (such as MyLawFirm.centerbase.com) --> <form action = "https://test.centerbase.com/web/webform" method = "post"> <!-- You can have several fields of data (text, numbers, drop downs, radios, etc.) These will submit to Centerbase using the NAME attribute you set. --> <div><label>Name:<input type = "text" name = "name"/></label></div> <div><label>Phone #:<input type = "text" name = "phone"/></label></div> <div> <label><input type = "radio" name = "gender" value = "Male"/>Male</label> <label><input type = "radio" name = "gender" value = "Female"/>Female</label> </div> <!-- You can add hidden fields to send data to Centerbase that you don't need to require the user to enter manually --> <input type = "hidden" name = "hidSource" value = "PHP test"/> <!-- REQUIRED: Enter your public key here. --> <input type = "hidden" name = "CbPublicKey" value = ""/> <!-- REQUIRED: Enter your private key here. NOTE: This method is not recommended as it exposes your private key to anyone visiting the page, but may be required if you don't have someone with the technical knowledge to setup a server-side processor for the form (such as PHP) --> <input type = "hidden" name = "CbPrivateKey" value = ""/> <!-- REQUIRED: Enter your form ID here. This specifies the template that was setup mapping this webform to Centerbase. --> <input type = "hidden" name = "CbFormId" value = ""/> <!-- REQUIRED: If posting directly to Centerbase, this will specify what page Centerbase will redirect to after it has processed the form. --> <input type = "hidden" name = "RedirectURL" value = "http://mysite.com/landingpage"/> <div><input type = "submit" value = "SUBMIT"/></div> </form>
Comments
0 comments
Please sign in to leave a comment.