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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:30:45+00:00 2026-05-11T19:30:45+00:00

My initial strategy at developing forms was like this: the form post back to

  • 0

My initial strategy at developing forms was like this: the form post back to the same page and in the page handler I start by looking for POST variables and taking appropriate actions, then display the page content. It was all looking rosy in the beginning. I would place a hidden field inside my form and the page to keep track of current state and I could implement a state machine on the page to display the page in View, Edit or Add states. But 2 months later my pages have turned into hideous stateful monsters, riddled with IFs and branches, impossible to maintain, the state exchanged between page and client in hidden fields has is ‘weight challenged’, I just can’t stand how it all turned out.

What am I doing wrong? Is this inherently hard? I’m down a slippery slope of reinventing ASP web forms? How is this done properly?

The technology behind (PHP) is irrelevant. My question is basically how to do HTTP forms that do more than simply take 2 fields and forward you to a ‘thank you’ page.

  • 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-11T19:30:45+00:00Added an answer on May 11, 2026 at 7:30 pm

    You’ve really done nothing wrong per se, except ignore scalability. For your initial scope, the POST handing worked like a charm, but as applications grow, or more projects begin using your custom framework, more and more code gets repeated and you’ll find yourself rewriting things you’ve already done from scratch which snowballs into a maintenance nightmare.

    The solution is to use an established framework such as CodeIgniter, CakePHP, Symfony or any other so that you’ll essentially never be repeating common tasks, and all your applications will have the same structure and flow. There are simple videos to get you started on any of these.

    I assume you’re trying to mimic the ViewState when you mention ASP.NET, which isn’t really necessary. Each of these frameworks have built-in methods to handle form submission and validation – and combined with some client-side technology such as jQuery, you can build rich applications quite easily.

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

Sidebar

Ask A Question

Stats

  • Questions 221k
  • Answers 221k
  • 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 When you have to autogenerate a portion of those classes… May 13, 2026 at 12:15 am
  • Editorial Team
    Editorial Team added an answer Creately Creately isn't really free, but you can pay them… May 13, 2026 at 12:15 am
  • Editorial Team
    Editorial Team added an answer Note that when you replace image like this: $('#Quote_btnEmail').attr('src', $('#Qt_Email_Image').attr('value'))… May 13, 2026 at 12:15 am

Related Questions

Every time I have to estimate time for a project (or review someone else's
I'm new to ASP.NET MVC so this may be a stupid question. I have
I'm fairly new to classical inheritance as I mainly deal with ECMAScript and Python,
I have an application with the architecture like client/server/db . Communication between client and

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.