Hi,
I am new with php, and I like itπ does anyone know if there is something like asp - a shortcut to echo?
in asp it is like: <%="hello"%>
php?
thanks, Assaf
that should work, just make sure in the php.ini file that the asp style is on
PHP works exactly the same way, so you can do
<?= "hello"; ?>
Thanks, it helps a lot...
Another simple question (sometime it is hard to find the answer for it):
How in php I get the data from a form? in asp it is: request querystring/form
You don't have to do a request.querystring. In PHP you just call the variable like.
http://sitename/index.php?name=jack
<?php
echo $name;
?>
Simply calling variables with the same name of form's objects.
<input type="text" name="Mytext">
In $Mytext there's the value inserted in the textbox by users. And so on...
cool π