I am trying to get $php_self to work insite my follow script.
$outpu .='<form metho=post action=$PHP_SELF>';
However i dont' think that inside of $outpu php is reconizing the $PHP_SELF
any ideas?
Thank you Anthony
variables are not replaced when inside single quotes, use double quotes and your variable will be replaced with the value of said variable in the script.
Originally posted by drawmack variables are not replaced when inside single quotes, use double quotes and your variable will be replaced with the value of said variable in the script.
after implementing what drawmack has said, still u dont get the value of $PHP_SELF then it may be because u are executing this code in a function and not in a php document. To solve this problem use $_SERVER["PHP_SELF"] instead
Some interesting coding practices out there. The cleanest:
$output .= "<form method=\"post\" action=\"{$_SERVER['PHP_SELF']}\">";