$mailbody = "SOME STUFF go to <a href=\"javascript: document.view_form.submit()\" target=\"_blank\">admin home</a> for further options.";
$mailbody .= "<form method=\"post\" name=\"view_form\" action=\"http://localhost/home\" target=\"blank\"><input type=\"hidden\" name=\"viewpage\" value=\"admin\"></form></body>";
$mailhomeheaders = "Content-type: text/html; charset=iso-8859-1\r\n"."From: $firstname $lastname <$email>\r\n"."Reply-To: $email";
when I get the mail and click the link, a browser window is opened with javascript:%20document.view_form.submit() in the address...
removing the space between : and java just removed the %20...
I tried onclick="document.view_form.submit()" on the <a> and that didn't work eiither...