[include: 'header.lasso']




[if: ((action_param: 'name') != '' || (action_param: 'email') != '' || (action_param: 'comments') != '') && (action_param: 'code') == (action_param: 'code2')] [inline: -database = 'darkage', -table = 'guestbook', -username = 'admin', -password = 'lp8sec', 'name' = (action_param: 'name'), 'email' = (action_param: 'email'), 'comments' = (action_param: 'comments'), 'approved' = 'Yes', -add] [/inline] [inline: -database = 'darkage', -sql = 'select max(id) as id from guestbook', -username = 'admin', -password = 'lp8sec'] [var: 'id' = (field: 'id')] [/inline] [email_send: -from = 'guestbook@darkagepictures.com', -to = 'guestbook@darkagepictures.com', -host = 'mail.darkagepictures.com', -subject = 'New guestbook signing', -body = 'Here is the new guestbook information:\r\rName: ' + (action_param: 'name') + '\rEmail: ' + (action_param: 'email') + '\rComments: ' + (action_param: 'comments') + '\r\rGo here to Delete: http://www.darkagepictures.com/guestbook_delete.html?id=' + $id] Thank you for signing.

Back to Guestbook [else] Please sign your name:
Name:
Email:
Comments:
[if: (action_param: 'code') != (action_param: 'code2')]Sorry, the code didn't match. Please try again.
[/if] To make sure you are a real person please enter the following code: [var: 'code' = (math_random: -min = '1000000', -max = '9999999', -hex)][$code]

Code:
[/if]