Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Global Submission

    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.

    http://mastainc.com/tutsubmission/
    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?!

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Did you get your problem solved? I get a 404 error when I try to click on that page.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    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.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    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:

    Code:
    <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.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •