Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda