This is an example of an HTML form that submits data to your own PHP server-side code which can then POST the data to Centerbase.
<!-- A basic form that submits to a PHP page --> <form action = "FormProcessor.php" 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. This will be combined with the private key on the PHP side to submit to Centerbase. --> <input type = "hidden" name = "CbPublicKey" value = ""/> <div><input type = "submit" value = "SUBMIT"/></div> </form>
Comments
0 comments
Please sign in to leave a comment.