Forum Moderators: coopster

Message Too Old, No Replies

new in PHP

         

galSoftwareDeveloper

3:52 pm on Mar 3, 2008 (gmt 0)

10+ Year Member




hi

i'm teaching my self php by reading through the internet. so what i don't know is how to run PHP.. I'm currently coding through FRONT PAGE.. i also installed mySQL. but i just wanna run a tester page..plz also tell me where must i save my code before i can run it..

thank's

galSoftwareDeveloper

3:45 pm on Mar 3, 2008 (gmt 0)

10+ Year Member



hi all..
I'm teaching my self PHP..I installed MySQL and Front page..so i'm using front page to try & run my code by using "http://localhost" including the name that i have given to my code but it doesn't run. So plz tell me how do u run php.

thanks

coopster

4:15 pm on Mar 3, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, galSoftwareDeveloper.

You need to upload your page to a computer that is running an HTTP server such as Apache.

benevolent001

4:16 pm on Mar 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello

Welcome to WebmasterWorld

The best to start with learning php is to download easyphp and then save all those pages which you make using frontpage in htdocs folder of easyphp

This will run when you will open [localhost...]

With Regards and Best Wishes

galSoftwareDeveloper

4:46 pm on Mar 3, 2008 (gmt 0)

10+ Year Member




hey guys...
thanks for the replies...
so where can i get EASY PHP? the notes that i'm reading are from [w3schools.com...] ..

benevolent001

4:52 pm on Mar 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is the link

Easyphp Download [sourceforge.net]

galSoftwareDeveloper

11:16 am on Mar 4, 2008 (gmt 0)

10+ Year Member



hey i visited that site now my only problem is to connect to the database.

galSoftwareDeveloper

12:06 pm on Mar 4, 2008 (gmt 0)

10+ Year Member



Gooooosh i really need help...i'm trying to run a tester page where there will input. but this doesn't run..
<html>
<title> TESTER PAGE </title>
<form>
Username: <input type="text" name="username" />
Password: <input type="text" name="password" />
<input type="Submit" />

</form>
?>
</body>
</html>

ayushchd

12:13 pm on Mar 4, 2008 (gmt 0)

10+ Year Member



when are you starting <? because I can see it ending after </form>

I guess you gotta paste your entire code ;)

galSoftwareDeveloper

3:29 pm on Mar 4, 2008 (gmt 0)

10+ Year Member



ok please show me how do i start. :(
i'm really trying this php...

ayushchd

3:59 pm on Mar 4, 2008 (gmt 0)

10+ Year Member



paste your entire code here..and then we'll see what the problem with the code is .. dont worry.. ;)

galSoftwareDeveloper

4:50 pm on Mar 4, 2008 (gmt 0)

10+ Year Member



now i wanna display the password & username that the user enters on the address bar but it doesn't work ...here's my code i've used the _GET method :'(

<html>
<title>FORM 1 PAGE </title>
<body>
<h1> Enter your log in details</h1>

<form action="Formtest1.php" method="get">

<b>Username:</b><input type="text" name="username" /><br>
</br>
<b>Password:</b><input type="text" name="password" /><br>
</br>

<input type="button" value="Submit">

</form>

</body>

</html>

ayushchd

5:24 pm on Mar 4, 2008 (gmt 0)

10+ Year Member



Where is the code for the file "Formtest1.php" ? as that is the main processing file..

If you want to do it all in one page..use $_POST..

Add these lines to the top of the page and save this file with a php extension :

<?
echo $_POST[username] . $_POST[password];
?>

Entire Code :

<?
echo $_POST[username] . $_POST[password];
?>
<html>
<title>FORM 1 PAGE </title>
<body>
<h1> Enter your log in details</h1>

<form action="Formtest1.php" method="get">

<b>Username:</b><input type="text" name="username" /><br>
</br>
<b>Password:</b><input type="text" name="password" /><br>
</br>

<input type="button" value="Submit">

</form>

</body>

</html>