Hi there,

>>> <form action="<?=$_SERVER['PHP_SELF']?>" method="POST">

I would always write his code the following way:

<form method="POST" action=<?php echo '"'.$_SERVER['PHP_SELF'].'"'; ?> >

First I was missing the 'echo', don't know if that has to be there but it
makes the code better readable.
Then, quoting the double quotes and using the dot to concatenate what is
echoed keeps html and php coding nicely separated so the code colouration in
my html/php/whatever editor keeps working as it should, makingit easier to
review code. It is always best to create readable code asyou may need to
revise it a year from now...

Marc

Reply via email to