Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1050925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:50:47+00:00 2026-05-16T16:50:47+00:00

i post something from a form and the form’s action is a page perform.php

  • 0

i post something from a form and the form’s action is a page perform.php

when i go to perform.php

<?php
$g = $_POST['my'];
sleep(3);
echo ("sdfsdfdsfdsfdsfdsf");
// a lot of other PHP & DB related code

//after a lot of code last line is
header("Location: source.php");
?>

what it does is that it does everything that needs to be done and i see loading of page and after that loading i don’t actually get to see perform.php for which the code i have given… and i am directed to source.php

what i was intending is from the form page i go to perform.php and there i will show some text and and after 3 seconds it will be redirected to source.php but that failed…

HOW TO DO IT

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:50:48+00:00Added an answer on May 16, 2026 at 4:50 pm
    <meta http-equiv="refresh" content="3;url=http://somewhere.com/source.php">
    

    Don’t do it via PHP. Why?

    What PHP currently does:

    Request comes in -> PHP does some stuff, waits 3 seconds WITHOUT SENDING ANY DATA TO THE BROWSER -> PHP tells browser to go to source.php (without showing anything).

    What it should do:

    Request comes in -> PHP returns HTML and includes tag to tell browser to redirect after 3 secs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<?php $var = arbitrary; echo <<<_END <form method = post action = feed.php> <input
I am getting a new php warning when a POST data from a form
I have the following form that has 2 selects: <form id=form class=form_visitar method=post action=ajax/selects.php>
I've got a PHP/Mysql app that lets users post text from a form. When
how to post something on user wall ( may be a php processed image
instead of checking all my post variables from a form one at a time
I'm using formtastic to collect information from a form and post dirctly to an
As the topic - How do I rewrite a POST request from a form
I have created a page called profile.php that gets a value from mainpage.php, by
I finally succeeded in using Ajax to get SOMETHING sent from one page to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.