PHP and forms - submission problems
Posted: Mon Apr 18, 2005 10:28 am
Yes... well, I'm trying to use a comments submission thingy, but the format must be like:
http://www.whatever.com/?username=TheUs ... ommentHere
Thing is, in my main PHP file, I have the user name as a variable $user, but when I use this code in the submit thingy, apart that it doesn't reads the parameters, doesn't even sends them.
Bits from my main.php
From the commentsubmit.php
If there's more needed info I'll post though. What I really need to know is how to pass that variable as another parameter inside the form tag, as, you could have seen my try up there, it gets the comments but not the name, as isn't being sent 
If anyone could help me it would be awesome ^_^
Thanks in advance
-DARKGuy
http://www.whatever.com/?username=TheUs ... ommentHere
Thing is, in my main PHP file, I have the user name as a variable $user, but when I use this code in the submit thingy, apart that it doesn't reads the parameters, doesn't even sends them.
Bits from my main.php
Code: Select all
<FORM method="post" ACTION="scripts/commentsubmit.php?user=$user">
<center><TEXTAREA NAME="comments" ROWS=5 COLS=30></TEXTAREA>
<INPUT TYPE="submit" VALUE="Submit"></center>
</FORM>Code: Select all
$me = $_POST['user'];
$text = $_POST['comments'];
echo $text . "<br>";
echo $me . "<br>";If anyone could help me it would be awesome ^_^
Thanks in advance
-DARKGuy