Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
$PHP_SELF
  • Posted: 08.03.2007, 01:59
     
    sae
    rank:
    Helper Helper
    registered:
     January 2005
    Status:
    offline
    last visit:
    29.10.08
    Posts:
    312
    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
  • Posted: 08.03.2007, 02:09
     
    ZarToXidE
    rank:
    Helper Helper
    registered:
     January 2005
    Status:
    offline
    last visit:
    09.02.08
    Posts:
    455

    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

    --
    Doe Maar Freak
  • Posted: 08.03.2007, 03:28
     
    sae
    rank:
    Helper Helper
    registered:
     January 2005
    Status:
    offline
    last visit:
    29.10.08
    Posts:
    312
    that didn't work for me. It went to www.mydomain.com/self
  • Posted: 08.03.2007, 03:30
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    $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

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula