<?php
}
-function admin_form_asociarse($admin = false, $id = '', $email = '')
+function admin_form_asociarse($admin = false, $id = '', $email = '', $foto = '')
{
?>
<form name="admin_asociarse" action="<?php echo $_SERVER['PHP_SELF'] ?>"
- method="post" onSubmit="return admin_validar_asociarse(this);">
+ method="post" onSubmit="return admin_validar_asociarse(this);"
+ enctype="multipart/form-data">
<script type="text/javascript" language="JavaScript">
<!--
function admin_validar_asociarse(f)
if (!check_iguales(f.admin_pass1, f.admin_pass2, 'Contraseña')) return false;
if (!check_vacio(f.admin_email, 'E-Mail')) return false;
if (!check_email(f.admin_email, 'E-Mail')) return false;
+ if (!check_vacio(f.admin_foto, 'Foto')) return false;
return true;
}
-->
Contraseña (repítala 2 veces): <input type="password" name="admin_pass1" />
<input type="password" name="admin_pass2" /><br />
E-Mail: <input type="text" name="admin_email" value="<?php echo $email ?>" /><br />
+ <input type="hidden" name="MAX_FILE_SIZE" value="50000">
+ Foto: <input type="file" name="admin_foto" value="<?php echo $foto ?>"
+ accept="image/png;image/jpeg;image/gif" /><br />
<input type="submit" value="Asociarse" /><br />
<?php if (!$admin) { ?>
<a href="admin.login.php">Ingresar</a>