Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!