A program contains two basic things, commands and values. The commands all have certain tasks they perform. The values are the information that the tasks are performed with.The following program uses the variable $strText, instead of a literal:!--php/* example.php – “Hello, (something)!” variable demonstration */// $strText is set to the value specified in the URL$strText = $HTTP_GET_VARS[‘strText’];echo ““Hello, $strText!”;?>For now, don’t be too distracted by the line that says:$strText = $HTTP_GET_VARS[‘strText’];This...
Embedding JavaScript in HTML
The <script> is to assist the browser in recognizing lines of code in an HTML document as belonging to a script, you surround lines of script code with a <script>...</script> tag set. tag. Script with src,<script src="my-script.js" type="text/javascript"></script> The purpose is to define functions, objects, and variables. Functions will later be triggered by buttons, other user events, inline script tags with body content, etc. script with body content <script type="text/javascript">JavaScript...
Subscribe to:
Posts (Atom)