Jump to content

Archived

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

tauchai

confusing

Recommended Posts

<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..



Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites

×

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.