Jump to content


  • Posts

  • Joined

  • Last visited

Previous Fields

  • Languages
    HTML, ASP, PHP, JavaScript

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    SEO and chocolate :-)

googleankan's Achievements


Newbie (1/7)



  1. Thanks! I get that echo is for printing, but why is that command used in the action tag? Why do I need to print anything there? I thought that I was only supposed to call a function? From my rather basic knowledge point of view, I would rather have it like this (without the echo): <form method="post" action="<?php htmlspecialchars($_SERVER["PHP_SELF"]);?>">
  2. Hi Davej, So incredible silly of me! I have searched the document several times for any other "echo" or "print" without success, so I assumed that the echo above was the reason for the printed zero. But now I realised it was just a simple "0" that slipped in to the code :-S Thanks for pointing me in the right direction! But, I'm still curious about the "echo" in the form tag. Why is it needed and what does it do?
  3. Hi, I wonder why echo is needed in the following lite of code (for a safe form submission)? I have searched for an answer but everyone seems to discuss the htmlspecialchar thing, but noone explains the "echo". <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> When I use this piece of code it results in a zero printed out on my website... Thanks a lot!
  • Create New...