Jump to content

Suggustion


seephp

Recommended Posts

<html>
<head>
</head>
<body>
<form action="action.php" method="post">
Name <input type="text" name="name">
Age <input type="text" name="age">
<input type="submit">
</form>
</body>
</html>

<html>
<head>
</head>
<body>
Hi <?php echo htmlspecialchars($_POST['name']); ?>.
You are <?php echo (int)$_POST['age']; ?> years old.
</body>
</html>

It is not showing the name and age. Can someone tell me the problem
Link to comment
https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125808
Share on other sites

you also need a PHP interpreter.

may I suggest installing XAMPP? It contains:
PHP
MySQL
Apache
PHP MyADMIN
FileZilla
Mercury32

After you install this you will be able to run your scripts, and use a database.
Assuming your using window... here is the download: http://www.apachefriends.org/en/xampp-windows.html#641
it's a [b]33MB Downlaod[/b]

No other set up is required, except for setting the PHP MyADMIN password, which isn't required
Link to comment
https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125836
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.