Need Help Sending a Variable!!

I’m utterly confused on this one. The syntax for the input type does not seem to be working for me like it should.

Below is my code I’m working with.

[php]
$new=$_GET[‘new’];

<DIV align="center">
<TABLE>
<form action="postdelete.php" method="get">
<tr WIDTH="1000" align="left" valign="middle">
<td WIDTH="333" align="left" valign="middle">
</td>
<input type="submit" name="new" value="Accept">
</form>
</TABLE>
</DIV>
</body>
</html>[/php]

So In the postdelete php file I just have:

[php] $new=$_GET[‘new’];

echo $new;

[/php]

I just want to send the $new variable to postdelete.php

However the combination of code above outputs “Accept” instead of the value of $new.

To my understanding, the name= part is for the variable you want to send.

The value= is the string or whatever you want to label the submit box with.

This particular code
[php]$new=$_GET[‘new’];
echo $new;[/php]
basically instructs PHP engine to print the value assigned to your form control named “new”, which in your case is “Accept”.

If you want to send the $new variable to postdelete.php, here’s how:

[php]

<?php $new=$_GET['new']; ?> [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service