Browse Source

Show error message in red, only once, and inside the correct form.

master
Carles Tubio 9 years ago
parent
commit
3c4689fce2
  1. 8
      pool/page_reg.php

8
pool/page_reg.php

@ -34,8 +34,8 @@ Your miner password should be '<b>x</b>' and <b>must not</b> use your login pass
$pg .= '<table cellpadding=5 cellspacing=0 border=1><tr><td class=dc>';
$pg .= '<h1>Login</h1>';
if (isset($data['data']['error']))
$pg .= "<br><b>".$data['data']['error']." - please try again</b><br><br>";
if (isset($data['data']['error']) && !isset($_POST['pass2']))
$pg .= "<br><b style='color:red'>".$data['data']['error']." - please try again</b><br><br>";
$pg .= makeForm('');
$pg .= "
<table>
@ -55,8 +55,8 @@ Your miner password should be '<b>x</b>' and <b>must not</b> use your login pass
$pg.= '</td></tr><tr><td class=dc>';
$pg .= '<h1>Register</h1>';
if (isset($data['data']['error']))
$pg .= "<br><b>".$data['data']['error']." - please try again</b><br><br>";
if (isset($data['data']['error']) && isset($_POST['pass2']))
$pg .= "<br><b style='color:red'>".$data['data']['error']." - please try again</b><br><br>";
$pg .= makeForm('');
$pg .= "
<table>

Loading…
Cancel
Save