That will work, but the below is really supposed to work. I use it in my apps.


Blake Schroeder wrote:

Put a hidden field in your form named id.

-Blake

Mattias Thorslund wrote:

Probably with

<form method="post" action="foo.php?id=123">



Blake Schroeder wrote:

The form that is being submitted can only be a POST or a GET not both
example:
<form method="post" action="foo.php">
<input type="text" name="foo1">
<input type="submit">
</form>

How can you do both?

-Blake

Maldiv wrote:

Hello,

I have a php update form which use $_POST and $_GET too. I call the update
like this update.php?id=1
And after the user submit the form with new data I use command like this:
UPDATE table SET id=$_POST['id'] WHERE $_GET['id']='1';


This code works on localhost with Apache 2, Win XP, and Php 4.3.5 but it
doesn't works on my real server(Php 4.3.3, Linux, Apache 1.??)
I debuged it and I realised that on localhost I have the correct value in
the $_GET but in remote $_GET is empty.


What can I do?

Thanks!













-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to