Greetings, Alexey Kulentsov.
In reply to Your message dated Friday, April 18, 2008, 12:16:14,
Quote:
Just drop this control before submitting:
Quote:
<HTML>
<BODY>
<FORM onSubmit="var d=this.toDrop;d.parentNode.removeChild(d);">
<INPUT NAME="toLeave">
<INPUT NAME="toDrop" TYPE="SUBMIT">
</FORM>
</BODY>
</HTML>
Why not get it straight?
<HTML>
<BODY>
<FORM>
<INPUT NAME="toLeave" value="Form data goes here"/>
<INPUT TYPE="SUBMIT" value="Click me!"/>
</FORM>
</BODY>
</HTML>
Rule is simple: don't give name to element if you do not want to see it's
value passed to the script...
And it is not entirely PHP question... But it is related to PHP as you must
know what kind of data you will get from what kind of form elements...
Note: unchecked checkboxes does not provide any data to server too. If you
want to see them even if they are not checked, that's work for some kind
of javascript in form processing.
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>