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 631097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:55:39+00:00 2026-05-13T19:55:39+00:00

I’m working on a 2 page form that POST s a query to a

  • 0

I’m working on a 2 page form that POSTs a query to a database. Read-only, no writing. None of the information is confidential, nor will it every be.

The site must be 100% non-JS compliant, so Ajax and the like are not available. All I got is PHP, baby!

FORM-2‘s content is dependent on a fraction of the data in FORM-1, but ALL of the data in FORM-1 must also be submitted with the final query contained in FORM-2

It’s occurred to me that I could do the data hand-off from FORM-1 to FORM-2 two different ways:

1) POST the FORM-1 variable data to a SESSION
2) POST the FORM-1 variable data to hidden fields on FORM-2

They seem about equally difficult/easy to implement, so I’m wondering about security and such…

Also, in either instance, if I FORM-1 -> FORM-2 -> Results and don’t like my results, can I Back Button twice to FORM-1 and still have all the data checked, written, etc?

  • 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-13T19:55:39+00:00Added an answer on May 13, 2026 at 7:55 pm

    Technically, sessions break the “stateless” nature of the web and the other option is preferable. If security or the danger of someone submitting form2 from their own server with self-created values for form 1 really are problems, you could encrypt the data on submission of form 1 and store the encrypted data in a hidden field on form 2. (using mcrypt libraries — I have some sample code).

    Also, if we are being pedantic, the back button should not work with a POSTed form, since that would create problems with creating or destroying resources twice. But I think most modern browsers support it — that is a function of the browser, not the server, though you could do things like require a unique value on each submission to stop it.

    But realistically, almost everyone uses Session cookies almost all the time. It’s much easier, there are lots of examples, and it’s relatively secure.

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

Sidebar

Ask A Question

Stats

  • Questions 309k
  • Answers 309k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you have not implemented OnDeleting event of the ObjectDataSource,… May 13, 2026 at 9:56 pm
  • Editorial Team
    Editorial Team added an answer Don't remove them explicitly, reassign the dictionary using only the… May 13, 2026 at 9:56 pm
  • Editorial Team
    Editorial Team added an answer You can use CSS with Zend Form using something like… May 13, 2026 at 9:56 pm

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.