html - problem with passing variables with php -


I am trying to exceed the variable using "get" in php but ran into a secretion.

Here is my PHP file:

  & lt ;? Includes Php '../includes/header.php'; ? & Gt; & Lt; Div id = "page" & gt; & Lt; Div id = "content" & gt; & Lt; H3 & gt; & Lt ;? Php $ _GET ['head']; ? & Gt; & Lt; / H3 & gt; & Lt; Div id = "screenshot" & gt; & Lt; Img src = "../pictures/site/"> Php $ _GET ['img1'] ;? & gt; " / & Gt; & Lt; Img src = "../pictures/sites/"> Php $ _GET ['img2'] ;? & gt; " / & Gt; & Lt; / Div & gt; & Lt; Div id = "description" & gt; & Lt; P & gt; & Lt ;? Php $ _GET ['p1']; ? & Gt; & Lt; / P & gt; & Lt; P & gt; & Lt ;? Php $ _GET ['p2']; ? & Gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;? Php includes '../includes/footer.php'; ? & Gt;  

I made a simple request to check it out:

  & lt; A href = "work / test.php? Head = a & amp; img1 = b & amp;; img2 = c & p1 = d & p2 = e '& gt; & Lt; IMG src = "picture / site / thumbs / thumb.jpg" /> & Lt; / A & gt;  

This goes to the right page but no variables are being seen. Did I make a stupid mistake somewhere? Thanks!

All you need is an example here:

  & Lt; P & gt; & Lt ;? Php echo $ _GET ['p1']; ? & Gt; & Lt; / P & gt; & Lt; P & gt; & Lt ;? Php echo $ _GET ['p2']; ? & Gt; & Lt; / P & gt;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -