Sending two fields via a form

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am trying to create an option to vote on a subject. I have created a form  
like so:

<form method="get" action="place_vote.php">
Please place your vote for this article<p>
<input type="radio" name="vote" value="1"> 1 &nbsp&nbsp Worst
<br />
<input type="radio" name="vote" value="2"> 2
<br />
<input type="radio" name="vote" value="3"> 3
<br />
<input type="radio" name="vote" value="4"> 4
<br />
<input type="radio" name="vote" value="5"> 5 &nbsp&nbsp Best
<br />
<br />
<input type="submit" value="Vote">

However, I also want to send the value of the title of the article from the  
form. I added a new input

<input type="hidden" name="article" value=$_GET['title']>

but using the title like this done not work. I know that this GET call does  
work because further up in the code I do the following and it works fine:

include ("");
$title = $_GET['title'];
echo("<title>Article: $type</title>");

The problem is that it sends article=%24title rather than the correct title.  
I dont know why this wont work, so any help would be much appreciated!



Re: Sending two fields via a form

Paul Morrison wrote:
Quoted text here. Click to load it

<input type="hidden" name="article" value="<?php print $_GET['title'] ?>">


Re: Sending two fields via a form


Quoted text here. Click to load it

Site Timeline