Jump to content

Html To Php Form Communication Question


joshspaulding

Recommended Posts

I'm learning the very basics of PHP. I understand how html forms work, I understand what else, elseif, switch statements are and I understand variables and arrays.

 

I should say I understand what they are. What I'm TRYING to understand is how the html file and php file communicate with one another. I know that you tell the html form where the php file is with the form action and that communicates the form data to the php file.

 

But when I try to create a working example, using simple questions that have two answer options using radio buttons, I can't figure out how to echo the user's answer to the questions over to the php output file.

 

So I think my confusion is in the actual communication between the html form file and the php file. And I'm trying to accomplish this in the SIMPLEST way possible. Right now I'm just learning the BASICS of PHP, so I'm not worried about creating the absolute best and most efficient code... just trying to make it functional.

 

Does anyone know of a basic tutorial or article that might explain this? Or maybe you could explain in in a reply if it doesn't require much time?

 

If so I would REALLY appreciate it!

 

Thanks!

Edited by joshspaulding
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.