save form

From SkyPHP

Jump to: navigation, search

The save_form() javascript function will save your form's data to the database. Don't put your save button in the actual form file. Instead, put it on the page so that you can re-use the form on different pages.

Contents

Parameters

save_form( model [, next_page_uri [, on_success_fn]] )

Examples

Save Profile Page (stay on same page)

<input type="button" onclick="save_form('person');" value="Save" />

Submit Form (and go to another page)

<input type="button" onclick="save_form('website_request','/thank-you');" value="Submit" />
Personal tools