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

  • Home
  • SEARCH
  • 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 6361957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:50:41+00:00 2026-05-24T23:50:41+00:00

I have often wondered what is more secure, efficient and generally better? If I

  • 0

I have often wondered what is more secure, efficient and generally better?

If I have a login form, is it best to create a separate php file to handle the processing then redirect back to login page after it’s finished. Or is it best to do all the work on the same page?

Is there a general rule for this, or I’d it just personal preference?

  • 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-24T23:50:41+00:00Added an answer on May 24, 2026 at 11:50 pm

    What you choose is up to you. However, the Post-Redirect-Get pattern (PRG) is commonly used in PHP. With it, you post your form to a handling script which does not produce output. You may use the same handling script for many different forms, if you have a means to distinguish between them. After processing the POST, the handler script redirects back to the form page, or another page.

    The PRG pattern helps to avoid problems with the browser back button and form resubmission.

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

Sidebar

Related Questions

Had a question that I've often wondered about. Is it better to have multiple
I have often wondered why it is that non-English speaking programmers are forced to
Loose coupling is wonderful of course, but I have often wondered what overhead wiring
We often have a lot of cut and paste within a configuration file. For
I have often wondered why MySQL has become so popular. Any ideas why? Are
I have often come across this snippet : General form of invokeLater is -
I have often wondered this, is there a performance cost of splitting a string
I've read plenty of articles about tuning GC in Java and have often wondered
I have often wondered what exactly does casting do at compiler or machine level.
I have often heard this term being used, but I have never really understood

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.