|
|
|
|
![]() ![]() |
Mar 1 2005, 04:23 PM
Post
#11
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 208 Joined: 27-January 05 From: LI, New York Member No.: 3,448 |
You all gotta understand that just like math, there is many many different ways to code and use php. There is always another way to do things. For instace the echo function can also be replaced the the print function because they do the exact same thing. Also if you are trying to get an enviornment like HTTP_USER_AGENT or REMOTE_ADDR you can do it by either the $_SERVER variable or the getenv(''); function. See what I mean. So if your trying to correct someone , chances are that there PHP is right and your just showing them another way to do the same thing. Get my point. Well I hope so, lol.
|
|
|
|
Mar 5 2005, 11:19 AM
Post
#12
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 39 Joined: 17-February 05 Member No.: 3,814 |
QUOTE(beeseven @ Feb 26 2005, 04:01 AM) You don't need to have two pages for a form. You could just have some HTML then PHP then finish the HTML (pretend the file is called "file.php"): CODE <HTML> <HEAD> <TITLE>Title</TITLE> <BODY> <FORM METHOD="POST" ACTION="file.php"> Name: <INPUT TYPE="text" NAME="name"> <INPUT TYPE="submit"> </FORM> <?php echo "Hello, " . $_POST['name']; ?> </BODY> </HTML> im just into installin php im not into makin php stuff but soon i will |
|
|
|
Mar 5 2005, 06:59 PM
Post
#13
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 76 Joined: 5-March 05 Member No.: 4,178 |
I dont understand php very much.. im gonna have to start learning it more.
|
|
|
|
Mar 11 2005, 06:58 PM
Post
#14
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 117 Joined: 11-March 05 Member No.: 4,380 |
THIS IS EXCELLTENT FOR N00BS.....I personally aint a n0b at php but this post is amazing. You could have added mor einfo as its like not very self explaining and some of the points of basic php hasnt been covered like how to make a simple script for a certain run program. BTW php is a way of running different things....its like html but html can only concentrate on one site while php has a bit more logic and hence it works out things and runs more websites.......Php...well u have to learn html b4 u learn php as it is super hard....
|
|
|
|
Mar 12 2005, 07:24 PM
Post
#15
|
|
|
http://kalacreations.com/ ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 231 Joined: 3-August 04 Member No.: 594 |
only way to learn php, is to understand atleast the basic of how coding works, not the basics of php but of coding, like understanding arrays, loops, for, if and other statements as well. Understanding variables, and before you get into php, learn to code html by hand.
|
|
|
|
Mar 13 2005, 02:59 AM
Post
#16
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 618 Joined: 30-October 04 From: Philippines Member No.: 2,049 |
QUOTE(MSTR @ Mar 13 2005, 03:24 AM) only way to learn php, is to understand atleast the basic of how coding works, not the basics of php but of coding, like understanding arrays, loops, for, if and other statements as well. Understanding variables, and before you get into php, learn to code html by hand. Yes you are right. Before i am using getenv() function and it's really confusing to use it on if() functions. So, I decided to experiment on $_SERVER and it works. I discovered another thing, echo() is much more faster than print(). And, in arrays example $_SERVER, you can access it's arrays without using " and ' example, $_SERVER[REMOTE_ADDR] |
|
|
|
Mar 20 2005, 07:17 AM
Post
#17
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 199 Joined: 15-January 05 Member No.: 3,284 |
Thank you, this tutorial has been very helpful. I hope to learn more in PHP.
|
|
|
|
Mar 20 2005, 07:36 AM
Post
#18
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 156 Joined: 14-March 05 From: Washington, USA Member No.: 4,520 |
nice, I'm going to learn. That got me started, thanx
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|