Jump to content

Multiple forms to 1 post

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
blink41

blink41

    Newbie

  • Members
  • PipPip
  • 11 posts
Hey everybody !
Sorry for the title not explaining that much my problem :
I got a form which sends some data to a file called join.php.
The fact is that I created a 3 different forms, respectively to create, modify and delete a product, and I would like them to send their data to join.php, instead of creating 3 separated join.php.
I'd like to execute a particular sql query depending on the choice to create, modify or remove the product, and I'd like to have some tips about that.
Thx in advance !

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
easiest is to put a hidden value stating mode in the form...
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
blink41

blink41

    Newbie

  • Members
  • PipPip
  • 11 posts
Well, I don't really understand what you mean.
What I'd like to do is having multiple posts in one file, for example :
<?php name=first case
?>
<?php name=second case
?>
etc...
And in my form, I'd like to have : method=post1, post2 etc...
I really don't know if it's possible, or if the method you mentioned will do what I want, that's why I'm asking.
Thanks anyway !