$PHP_SELF  Bottom

  • I am trying to create a simple contact form that uses

    Code

    form action="<? echo $PHP_SELF; ?>"
    but it appears that postnuke does not allow or does not show $PHP_SELF Is there something else I should be using in my PHP script?

    Thanks.



    edited by: sae, Mar 07, 2007 - 09:00 PM
  • Code

    form action='get' target='self'

    or

    Code

    form action='post' target='self'

    Oi.... I should NOT mix drugs with alcohol... Major brainfart-reply... please ignore :-p



    edited by: ZarToXidE, Mar 07, 2007 - 11:36 PM
  • that didn't work for me. It went to www.mydomain.com/self
  • $PHP_SELF is an old style global and doesn't even exist in PHP 5 releases. Use the newer superglobals. In this case $_SERVER['PHP_SELF'] should do the job.

    -Mark

    --
    Visit My homepage and Zikula themes.

This list is based on users active over the last 60 minutes.