I'm having some problems with my form. I'm generating my form through php and I can't quite figure out how to echo <?= $_SERVER?> for the action in my form tag.
at the moment what I have is this:
echo "<form name=\"tsgh_add\" method=\"post\" action=\""; ?><?= $_SERVER['PHP_SELF']?><? echo "\" onSubmit=\"return checkWholeForm(this);\">";
I've tried other variations that I thought might work but haven't succeeded. Any help would be greatly appreciated.
P.S. I'd like to keep the person on the page they're submitting the form on so any solution for doing this is welcome.