tauchai Posted May 24, 2006 Share Posted May 24, 2006 <form action=add.php method=post><input type=hidden name=type value=room><input type=hidden name=area value=[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<?php [!--colorc--][/span][!--/colorc--]echo $area; [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]?>[!--colorc--][/span][!--/colorc--]>i don understadn this. When pass to next form for processing, the [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]name[!--colorc--][/span][!--/colorc--] is used or the [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]value [!--colorc--][/span][!--/colorc--]is used? and then, 2nd question: why the value could be a varibale as following?value=[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<?php [!--colorc--][/span][!--/colorc--]echo $area; [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]?>[!--colorc--][/span][!--/colorc--]>can someone explain to me. It's quite confusing and i'm totally new to php and server side scripting.. Quote Link to comment https://forums.phpfreaks.com/topic/10314-confusing/ Share on other sites More sharing options...
.josh Posted May 24, 2006 Share Posted May 24, 2006 the name in your input in your case 'area' (btw, you need quotes around it) is the name of the variable you are passing. well actually, it's a key name in the $_POST or $_GET array.. Quote Link to comment https://forums.phpfreaks.com/topic/10314-confusing/#findComment-38454 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.