Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

141
Vistas
Auto Form Submit Working in Wordpress only Logged Users

I am using the below code to execute when the page load. It is working fine. But. It is redirecting only when I logged the wordpress.

<script type="text/javascript">
window.onload = function(){
  document.forms['form_signup'].submit();
}
</script>
<body>

<form name="form_signup" action="https://signnupformregister.com/login.php" method="POST">
  <input type="hidden" id="pw" name="pw" value="pass@e"><br>
  <input type="hidden" id="user" name="un" value="username@microsft.in"><br><br>
 
</form> 

</body>

When I refresh the page after logout, login page only showing and hidden values not pass to the post URL.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This could be because of the plugins you added and the effect of their updates on the theme. For instance, a security plugin may disable the REST-API option for users except for the admin. You need to check the function.php and find the relevant authentication function there. Something similar to this condition (! is_user_logged_in()) then throw error if the users is not logged in.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda