How to properly pass form data in php?

后端 未结 6 1404
天涯浪人
天涯浪人 2021-01-25 14:07

I\'m using php to build a small form that requires passing 2 variables for processing.

I got the example off w3schools and although the info gets passed in the URL, the

6条回答
  •  醉梦人生
    2021-01-25 14:57

    Indeed as already noted by various posts, this code should work. In my experience the php tags are output directly if they're not parsed. Do you see anything on the page at all? You could also check the sourcecode of the page and check if you can spot anything wrong there.

    Also when copying from examples on the internet, sometimes you get weird characters that interrupt the parser. Usually this results in an error (which is not the case here), there's no harm in checking though.

    Try outputing something simple and see if that works:

    
    

    Can't think of anything else at the moment...

提交回复
热议问题