Call to undefined function form() ?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

justlukeyou
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Feb 02, 2011 4:23 am

Call to undefined function form() ?

Postby justlukeyou » Sun Sep 16, 2012 6:12 am

Hi,

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" .
    "\r\n" .
    "Kind regards,\r\n" .
    "\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.
echo
  form('reset-password',
    input_hidden('userid', $_GET['userid']) .
    input_hidden('key', $_GET['key']) .
    table(
      tr(
        td(label('New Password')) .
        td(input_password('new_password', ''))
      ) .
      tr(
        td(label('Confirm Password')) .
        td(input_password('confirm_password', ''))
      )
    ) .
    input_submit('ok', 'OK')
  );

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest