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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:25:55+00:00 2026-06-05T02:25:55+00:00

Currently, I’m developing an application using standard PHP. As such, there are assorted functions

  • 0

Currently, I’m developing an application using standard PHP. As such, there are assorted functions that are called from forms. Some examples include registration, login, logout, and others.

Rather than creating a separate file for each function, I’m using a phpscripts.php file in the includes folder. To execute a function from html input, I pad the URL with ?action=functionName. Inside the script file, I use a switch/case tree to execute the proper function based on the S_GET['action'] variable.

Is there a better way to implement HTML calls to PHP functions?

  • 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-06-05T02:25:56+00:00Added an answer on June 5, 2026 at 2:25 am

    No, that is the correct way to interface a HTML form with a PHP script. Other alternatives would include employing URL rewriting (to convert something like /actions/functionname/param to ?action=functionname&param=x), but the basic principle remains the same.

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

Sidebar

Related Questions

Currently writing a C# application it should do backups using GIT in the background.
Currently i'm having trouble using two functions in my -(void)viewDidLoad , both of these
Currently I am doing mass deletes using variations of the following query: DELETE FROM
Currently I building a small desktop application that can handle DICOM files. I am
Currently i am working in simple game application, using GL_Line to draw a line
Currently using a large platform in PHP. The server it's hosted on has recently
Currently I am using this code to pull a RSS feed from Yahoo Weather
Currently I'm using the Jackson JSON Processor to write preference data and whatnot to
Currently playing about with KnockoutJS. Just trying to update an observable array from a
Currently, I have a GWT based application /app.htm It displays an openId login button

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.