Implementing Forms To Go in Webplus X4 Tutorial
Implementing Forms To Go in Webplus X4 Tutorial
Information taken from the Bebo website and created by Mick for and on behalf of Serif-Irc.co.uk
WebPlus X4
Serif provides an external free service, Serif Web Resources (SWR), for forms processing with WebPlus. While the service is easy to use, it is lacking some features. Forms To Go delivers on these missing features:
process forms without having to rely on SWR and its uptime bypass SWR captcha page customizable FROM email address (FROM address no longer has to be This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) advanced server-side validation rules (not dependent on Javascript) specify multiple TO, CC, BCC email addresses customizable subject and message route submissions to different recipients depending on submitted form values send autoresponder (confirmation email to user) with attachments save submissions to MySQL, PostgreSQL, text file spam/abuse protection (captcha, reCAPTCHA, security question challenge, words filtering, IP filtering) and much more...
Lets get started with an example for generating a PHP script. NOTE: It is possible to use WebPlus client-side validations along with Forms To Go server-side validations. WebPlus client-side validations are executed first by the browser via Javascript. If passed, then Forms To Go server-side validations are executed by the script.
In WebPlus:
1. Create a form based on Comments 1. Set the action to "No action".
1a. Adding a reCAPTCHA will be discussed in another tutorial 2. Create a success (thank you) landing page that will be redirected to after a successful form submission. 3. Publish site to your local disk folder under File > Publish Site > Publish to Disk Folder.
In Forms To Go:
4. NOTE: This is a one time-setup to hide the SUBMIT, RESET, and IMAGE buttons that are not used in Forms To Go. Windows: Under Edit > Options > HTML Form, click SUBMIT, RESET, and IMAGE checkboxes. 5. Click on File > Load HTML Form from File, and navigate to the page from step 1.
For NAME field, apply 'Number of characters' validation to limit acceptable characters. For EMAIL field, apply 'Email address' validation. For COMMENTS field, apply 'Number of characters' validation to limit the number of characters.
7. Under Settings > Email to Form's Owner > Addresses, configure the TO, FROM, SUBJECT, and BODY.
Customize the email subject/message. Right-click in these fields to display a menu of additional information to insert.
8. Under Settings > Landing Pages, configure the success and error landing pages.
For the success landing page, select 'Redirect' and enter the file name from step 2. For the error landing page, select 'HTML form' and enter the file name from step 1. (Not available in Lite version.) Click 'Display Javascript Alert Box with error messages' checkbox. (Not available in Lite version.)
9. Click Script > Create PHP Script to generate the PHP script. Make sure to save in the same directory as the pages from step 1 & 2.
10. Under File > Save Settings As, save the settings file for this form for later modifications. Do not upload this settings file to your website.
In WebPlus:
11. Link the form to the script.
Go to the page from step 1, right-click in the form area, and click on 'Edit Form Properties'. Under the Action tab, click the button 'A script file from my hard drive'. Click 'Browse...' button to select the script file from step 9.
12. Upload your form page, success page, and script file to your server under File > Publish Site > Publish to Web.
Other Resources