got the following line:

$button2 .= "<form action='login.php' method='post'><table><tr valign=\"top\"><td><input type='text' name='keywords' style='font-family: Arial, Helvitica, sans-serif; font-size: 8pt; color:#000000; ......

this works fine but of course I actually wanted to user $PHP_SELF else im going to have to do every page (and theres only 150 of them)

so what am i doing wrong I first had:

$button2 .= "<form action='<?php $PHP_SELF; ?>' method='post'><table><tr valign=\"top\"><td><input type='text' name='keywords' style='font-family: Arial, Helvitica, sans-serif; font-size: 8pt; ...

but then i get (in my browser) :
The requested URL /< was not found on this server. so how am I suppose to type this?

    Try this:

    $button2 .= "<form action='$_SERVER[PHP_SELF]' method='post'><table><tr valign=\"top\"><td><input type='text' name='keywords' style='font-family: Arial, Helvitica, sans-serif; font-size: 8pt; ... 

      thanx. that works but what is the difference?

      I assume they are essentially the same thing, just written in a different way?

      thanx that has helped.

        Your version: $PHP_SELF vs $_SERVER[PHP_SELF]

          Originally posted by move3rd
          Your version: $PHP_SELF vs $SERVER[PHP_SELF]


          Actually, that will give a very low level error, too. $
          SERVER['PHP_SELF'] is most correct.

            Write a Reply...