View Full Version : Global Submission

-MA TriX0978-
09-21-2005, 03:17 AM
Not really sure what thread this would go into but i think PHP will be involved. I am creating a page to be able to submit tutorials to several different sites. Heres what it is.

So far its just HTML.
Is there anyway i can add on a global button that will submit any forms that is completed? I figured there is a way to do this in php?!

09-21-2005, 04:22 AM
Did you get your problem solved? I get a 404 error when I try to click on that page. :confused:

-MA TriX0978-
09-21-2005, 05:51 AM
oh sorry. wrong link


09-21-2005, 06:19 AM
I'm not really sure what you're trying to do, but you could have each of the forms processed through the same PHP page, if that's what you wanted to do. Each field on the individual forms is passed to whatever PHP page you're processing the data with, then decisions could be made there as to how to proceed based on those form values.

You might be able to redesign your page so that you only have a single form. Before we could give you some advice about that though, we really need some more detail about this page.

Just so you know, you form doesn't necessarily have to use PHP. It could use ASP, ASP.net or something else. ;)

-MA TriX0978-
09-21-2005, 06:28 AM
i just know PHP the best. i just didnt know if there was a way to do it. But theres gotta be a way to have 1 submit button to make all the forms process at the same time.And have the submit button have 4 actions of being all the links.

09-21-2005, 07:02 AM
Well again, without knowing too much about your application, I can give you some general suggestions. Each form can have the same action attribute. For example:

<form action="myscript.php" method="post">
I don't know whether you can have the same input variable names on the same page in two different forms, but to be on the safe side you'd probably want to use different names for each form.

myscript.php could retrieve each of the variables, decide which form was being executed (using a hidden variable maybe?) and process based on that.

I hope this explains a little better how you might go about this.