Code

Assumption: you finished your calculator test like you all promised, and understood everything you created.

The basis of the calculator task was:

1. Create a form
2. Upon submitting the form, do something with the submitted data (value in text input)
3. Do something based on the calculation result from step 2. (i.e. show result to user)

Silver’s question below asks how to:

1. Create a form (name, email, password)
2. Opon submitting the form, do something with the submitted data.
3. Do something based on the result from step 2. (ie. Show “Account created!” message or “Error!” message)

The Google Docs link I posted last Thursday (http://fkingtiny.com/59) shows how you can save data using the API, given the data from a submitted form.

Step 2 is $save = $API->user_save([DATA FROM _POST])
Step 3 is if ($save[‘status’] == ‘ok’) { OK MSG } else { ERROR MSG }