Ah, I think you can do something like:

<form method="post" action="myapp.php?get1=val&get2=val...">
  <input type="text" name="post1"/>
  <input type="text" name="post2"/>
  <input type="submit" value="Submit"/>
</form>

and then in "myapp.php":

<?php

echo $_GET['get1'];
echo $_GET['get2'];

echo $_POST['post1'];
echo $_POST['post2'];

?>

The trick is manually inserting the GET variables as URL parameters in
the form action field.

- jake

On 9/20/07, Codex <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> this is probably something very simple, but I don't get it. I want to
> post data to a php file that send the posted data to the DB. Then I
> would like to return the last inserted ID and use that on the same
> page the request was made from. How is this done? I know how to post
> and how to get, but not in the same request. Do I have to use Ajax?
>
> Maybe it's a little clearer if I mention it's for writing tags to the
> DB Flickr style.
>
> Need help! ;-)
>
>

Reply via email to