![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: urgent |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| Plz help on PHP I've installed XAMPP on my PC.Simple programs like the follwoing 2 are running. <?php print "Hello World"; ?> or <HTML> <HEAD><TITLE>TRIANGLE</TITLE></HEAD> <BODY> <CENTER> <?php for($i=1;$i<=10;$i++) { for($j=1;$j<=$i;$j++) print "*"; print "<br>"; } ?> </CENTER> </BODY> </HTML> But evenever I use FORM I cant get the proper output.Like the following code: <HTML> <HEAD><TITLE>My Web World</TITLE></HEAD> <BODY> <FORM METHOD="get" ACTION="sand.php"> Enter Name : <INPUT TYPE="text" NAME="name"><BR> <INPUT TYPE="submit" VALUE="Submit"> </FORM> </BODY> </HTML> <?php print "Hi $name"; ?> or, <HTML> <HEAD><TITLE>My Web World</TITLE></HEAD> <BODY> <FORM METHOD="POST" ACTION="factorial.php"> Enter Number : <INPUT TYPE="text" NAME="fact" VALUE=""> <BR> <INPUT TYPE="submit" VALUE="Submit"> </FORM> </BODY> </HTML> <?php $j=1; for($i=1;$i<=$fact;$i++) $j=$j*$i; print "$j"; ?> Please Help!!! |
| |
| ||||
| Please do not double post. Also, see Markup For Easy Reading for posting code guidelines. I have closed this thread as the original is at Hello friends |
| The Following User Says Thank You to TeraTask For This Useful Post: | ||
HelloWorld (11-08-2007) | ||
![]() |
| Thread Tools | |
| Display Modes | |
| |