I have the following code however the form('reset-password', part creates an error. Call to undefined function form()
I have looked up was this error is and the only suggestions I can find is that it is returned due to a spelling error. However I cant see any spelling errors. Does anyone have any suggestions on how I can fix this please?
- Code: Select all
/// URL is defined as the root of the URL used in the email, in this example it would be "http://example.com/"
URL . "resetpassword.php?page=reset-password" . urlencode($userid) . "&key=" . urlencode($key) . "\r\n" .
"Kind regards,\r\n" .
"The example.com Web Site"
// form, input_hidden, table, tr, td, label, input_password and input_submit are my own wrappers which return the appropriate HTML with escaped values where required.
input_hidden('userid', $_GET['userid']) .
input_hidden('key', $_GET['key']) .
td(label('New Password')) .
td(label('Confirm Password')) .