Lennart Ericson
asked on
How to get form action right
In a list of links this code is used:
I had expected to get http://www.whaterver.com/tinymce/edit_tinymce.php?sort=x but instead I get http://www.whaterver.com/tinymce/edit_tinymce.php?B2=G%E5+dit.
Please, experts, teach me how to get it right.
echo '<form action="tinymce/edit_tinymce.php?sort='.$id.'">
<tr>
<td> </td>
<td style="background-color: #E5EDF6"><span class="brodrubrik">Redigera resa till '.$plats.' den '.$datum.'</span></td>
<td style="background-color: #E5EDF6"><input type="submit" name="B2" id="B2" value="Gå dit" >
</span></td>
<td> </td>
</tr>
</form>';
The url is correct when in the browser the cursor is put on the button. But when the button is pressed and the new page comes up the url is displayed awkwardly in the browser's address field.I had expected to get http://www.whaterver.com/tinymce/edit_tinymce.php?sort=x but instead I get http://www.whaterver.com/tinymce/edit_tinymce.php?B2=G%E5+dit.
Please, experts, teach me how to get it right.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER