Jump to content

html forms submit button


dhmyers82

Recommended Posts

Please tell me if I am thinking correctly

 

 

I have a .html doc with a form. The form has an action calling a php file. The action is called when I hit submit.

 

How does it work with an all-in-one form? Why is the php running as the page loads and not when I hit submit?

 

 

Link to comment
Share on other sites

When it is a .php file with a form and the action calls itself. The validations are running before the user even has a chance to enter in any data.

 

I just reread the question and I think they should be separate files with all the data being appended to a "single" .txt file

Link to comment
Share on other sites

 

When it is a .php file with a form and the action calls itself. The validations are running before the user even has a chance to enter in any data.

Not at all. PHP is only executed when a request is sent to the server, ie the user clicks a link, submits a form.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.