Jump to content

Browser Heading Question


phpnoob

Recommended Posts

act.1 will not work correctly as a key in your query string. The dot causes problems.I don't know if this is a typing error or your real code, but it will not work:if ($_GET['act']=post)It should look like this:if ($_GET['act']=='post')

Link to comment
Share on other sites

act.1 will not work correctly as a key in your query string. The dot causes problems.I don't know if this is a typing error or your real code, but it will not work:if ($_GET['act']=post)It should look like this:if ($_GET['act']=='post')
lol you are right, i fogget one more = charAnd i see a website that using .1
Link to comment
Share on other sites

I wasn't sure about the dot before I wrote you, because I had never tried it before. At some point in the transmission, it changed from a dot to an underscore. I don't know if my browser did that or if PHP did that. If you have seen it work somewhere else, maybe they were not posting to PHP. I don't know. Try it for yourself. This will show you exactly what you received:print_r($_GET);Anyway, changing it should not be a problem, right?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...