SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking looping through different form actions

    Say you had a form like this

    Code HTML4Strict:
    <form action="*loop urls here some how?*/action.php" method="post" name="someform">

    and an array of form action urls like this

    PHP Code:
     $topsites[1] = "http://www.site.com"
     
    $topsites[2] = "http://www.site1.com"
     
    $topsites[3] = "http://www.site2.com"
    How would you go about looping through the array so that the form data gets submitted to the sites while only submitting the original form. This would be a hidden form the data would be collected from another form stored in variables then all the data would be sent to this form to be submitted to the sites. I'm not sure how else it could be done.

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Not like that, no. You can submit to one form handler which would work as a router and submit the data to other urls using curl.
    Saul


Bookmarks

Posting Permissions

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