Computing.Net > Forums > Web Development > sending form results with PHP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sending form results with PHP

Reply to Message Icon

Name: BigShow
Date: February 29, 2008 at 08:48:46 Pacific
OS: xp
CPU/Ram: pent
Product: dell
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: February 29, 2008 at 17:57:50 Pacific
Reply:

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, ..., ???


0

Response Number 2
Name: Laler
Date: February 29, 2008 at 18:05:56 Pacific
Reply:

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.


0

Response Number 3
Name: BigShow
Date: February 29, 2008 at 18:14:43 Pacific
Reply:

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?


0

Response Number 4
Name: Fist (by fmwap)
Date: February 29, 2008 at 19:19:24 Pacific
Reply:

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??


0

Response Number 5
Name: Fist (by fmwap)
Date: February 29, 2008 at 19:34:09 Pacific
Reply:

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



0

Related Posts

See More



Response Number 6
Name: netweb
Date: April 27, 2008 at 22:31:27 Pacific
Reply:

You can use CURL function to do so without using or need of database.

netweb


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: sending form results with PHP

Instant Messages with PHP? www.computing.net/answers/webdevel/instant-messages-with-php/1245.html

How i create 3 page with field form www.computing.net/answers/webdevel/how-i-create-3-page-with-field-form/2234.html

sending form results in email www.computing.net/answers/webdevel/sending-form-results-in-email/2303.html