lisa*jo: $_SERVER['PHP_SELF'] hat "/" voran, warum?

Beitrag lesen

also es funtkioniert in ca. 10 formularen sehr gut nur in einem eben nicht und jenes ist zwei ordner unterhalb des document-root!
____________TEIL EINER KLASSE_______________________________
if ($href=="self")
 $href=$_SERVER['PHP_SELF'];
 return "<form method='post' action='".$href."?content=".$target."&ReceiverID=".$_GET['ReceiverID']."' enctype='multipart/form-data'>";
--------------------------------------------------------------
und hier haut er :
<form method='post' action='//profile/mail/index.php?content=basedata&ReceiverID=3' enctype='multipart/form-data'>
als ergebnis! also profile/mail/index passt ja abe rwoher kommt des zweite "/" in front?

lg, lisa