2008/12/27 Daniel Brown <danbrown@xxxxxxx>:> Happy Chanukah, Dotan!> And a Merry Christmas! > For portability's sake, especially if you anticipate users saving> the form to their local systems, I would recommend:>> <?php> $action = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];> ?> Naturally I have HTTP_HOST in there, but I did not even think about PHP_SELF. > If you use REQUEST_URI and the form is on a page not called> directly (for example, on index.php and called only by directory; a> mod_rewrite /contact page; etc.), using REQUEST_URI gives the actual> request, where PHP_SELF gives the actual file.> That is a good point, and it is rather likely that the form may windup on an index.php page where the filename is not part of the URI.Thanks! -- Dotan Cohen http://what-is-what.comhttp://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-תا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-يА-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Яа-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-яä-ö-ü-ß-Ä-Ö-Ü