Sunday, December 27, 2009

PHP Coding help!!!!!!!!!!?

Any one know how i can get a user to enter in a variable and then use it later for a calculation.





in C++ it would look something like this:





int x;





cin %26gt;%26gt; x;





cout %26gt;%26gt; x + 10;





Thanks for any help guys and galsPHP Coding help!!!!!!!!!!?
check this site for more help in PHP code http://www.w3schools.comPHP Coding help!!!!!!!!!!?
php inside a web page?


you need form, or javascript or better maybe ';ajax';-like functions.


the entered val should then be available as $_GET or $_POST vars.





if you are using php like a scripting lanuage outside web, .... rtfm!!! there are scanf-like function...





~add~


by the way, ur C++ is wrong...


int x;


cin %26gt;%26gt; x; // ok


cout %26lt;%26lt; x; ...

No comments:

Post a Comment