Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Is it possible to take information from a form and send it to several URLs. In other words, If I had two text boxes and when someone filled them in could I send it to several URLs within one form. I would take the information, assign a variable to it and then place that variable inside the URLs that I want to send it to and send it.

Basically no.
But you can re-create the POST or GET to multiple URLs in a server-side script. But I have no experience.
some (might be) useful keywords for PHP: fsockopen, curl, ..., ???

If I had two text boxes and when someone filled them in could I send it to several URLs within one form. I would take the information, assign a variable to it and then place that variable inside the URLs that I want to send it to and send it.
Could you describe more and exactly what do you want to achieve?
Are you planning to open 2 pages when a visitor click the submit button?
There's a bad workaround by using JavaScript for this matter, like assigning a function to the "onsubmit" event on the form, and let that function opens the URLs you want. The URLs can even be opened hidden.
But as I said this isn't really good and reliable.

This is exactly what I am trying to achieve. I have creaed a lot of sites at this point and for the most part I still maintain them for my clients. One part of this is to submit them monthly to each major search engine. I usually just do the top 5 or 10. what would be easy is if I could create a script where I could put a URL in and it submits that URL to each of those engines. After I submitted last time I copied the URL that it submited to for each engine. I dont want to use a site that offers it because I want to make sure it gets done right. Any Ideas?

2 ideas:
- Use AJAX to submit the form, the page won't refresh, the values would be the asme, and you'd just need to resubmit w/ another ajax call after the first submission is complete
-If you built your forms using HTML_QuickForm in PHP (which u should be cuz it's badass), you can serialize the entire form object & pass submitted values, layout & all easily w/ get/post...or just put it into a database??

oh, I missed the actual goal.
Yah, I would just throw values into a DB and then make a cronjob run every so often to handle the submits...seems cleaner, then u can log & check check return values too, writing that entire thing in javascript sounds like a real pain, hehehe
Does resubmitting monthly even do much these days?? Most the spiders don't seem to listen to me when I tell them, heh. I normally just make a sitemap.xml & submit that to google

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |