hey i made a script while i was learning php but i have no clue to why its working.
[code=php]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title>Joe’s Request for a PHP Posting Script, granted! Post? Script Made by moi.</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<?php
$post = $_POST[‘post’]
?>
<center>
<h1>Your Post</h1>
<p> </p>
<fieldset>
<legend>Submited By <?php echo $name ?></legend>
<pre>
<font size=”-1″> Post #<?php echo $postnum ?></font>
<br><?php print $post ?>
</pre>
</fieldset>
</center>
<p> </p>
<br>
<center>
<hr width=”80%”>
<p> </p>
<pre>
Copyright© Richard Wilson 2005, All Rights Reserved.
Visit our <a href=”www.365th.aarecon.com”>Site here….</a>
</pre>
</center>
</body>
</html>
i only allowed the $post variable but the name and post num variables work great…… how are they working when i didnt specify them the html part goes like this….
[code=html]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title>Joe’s Request for a PHP Posting Script, granted! Post? Script Made by moi.</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<center>
<h1>Posting System</h1>
<h2>Made for Joe….</h2>
<p> </p>
<p> </p>
<form action=”post.php” method=”post”>
<table border=”0″>
<tr>
<td width=”325″>Please enter your post…..<br></td>
<td width=”151″>please enter a number between 1-100 (post #)</td>
</tr>
<tr>
<td align=”center”><br>
<textarea name=”post” cols=”50″ rows=”5″ id=”post”>Type your post here….</textarea>
</td>
<td align=”center”>
<input name=”post2″ size=”8″ maxlength=”2″>
</td>
</tr>
<tr>
<td colspan=”2″ align=”center”><input name=”name” type=”text” value=”Enter Name Here…”></td>
</tr>
<tr>
<td colspan=”2″ align=”center”>
<br><hr width=”80%”><br><input name=”Submit” type=”submit” value=”Submit Da Post!”>
</td>
</tr>
</table>
</form>
<p> </p>
<br>
<hr width=”80%”>
<p> </p>
<pre>
Copyright© Richard Wilson 2005, All Rights Reserved.
Visit our <a href=”www.365th.aarecon.com”>Site here….</a>
</pre>
</center>
</body>
</html>
please help!!!!
the script can be found [URL=http://365th.aarecon.com/phppassword/phptests/post.htm]here!