i realize that - my question is, why are you trying to have multiple copies of the variable by the same name? in general, it is bad practice to have variables outside function/class scope by DIFF names, let alone the same name. the linker can't distinguish between them.
what is the underlying reason you're doing this, please?
User Profile
Collapse
-
in short, don't. do you have some particular problem you're trying to solve?Leave a comment:
-
i think you're asking how to validate the content of name - if so, take a look at the isxxx functions, eg., isalpha, and friends. if you need something more complex, try regex().
do you have special requirements for the content of name[]?Leave a comment:
-
unless i'm not understanding your question, i THINK you want to look at the man page for netcatLeave a comment:
-
if i understand your question, you're trying to use a number passed from a previous page via a text box. assuming the textbox was rendered by something like
<textarea name="areaname" rows="16" cols="64" ></textarea></td></tr>
and assuming it was POST'd t the current page, the value would be
$_POST['areaname']
using an input box might be more approp if just...Leave a comment:
-
anonuser replied to about php error called Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), exin PHPshould readCode:if(isset($_POST['username']&&$_POSt['password']))
i hope you're sanitizing your input - using POSTs directly like this invite problems :-)Code:if ((isset($_POST['username']) && (isset($_POST['password']))
Leave a comment:
No activity results to display
Show More
Leave a comment: