Jump to content

[SOLVED] Form sent to 2 sites


soycharliente

Recommended Posts

I'm making this form for a company. Their previous form uses JavaScript to check the inputs, so I'm trying to do this with PHP. They want the data sent to this 3rd party company that tracks all the stuff for them.

 

SO I'm wondering if I can have the form go to both the page and this other site. The PHP to process it is on this page of course but I still need the data to be forwarded. Does this make sense?

Link to comment
Share on other sites

I don't want to e-mail it.

 

The form they use now has this other site as the action and a hidden input with name RetURL which I assume the page will send back to.

 

I don't like how it uses JS to check for errors so I wanted to use PHP to check for errors and then send the form, BUT the code to check is on the page, so it would have to return to itself and then send all the same data to this site.

 

Wanted to know if that's possible.

Link to comment
Share on other sites

Well (attempting to be unbias here, I love PHP) Javascript is preferred for form validation as its client side. I had an hour long debate on this with a guy who works for Microsoft before I finally gave in :P

Link to comment
Share on other sites

Granted, but I think the better statement is what if it is on. Of course your going to want PHP authentication too to a degree but it is *much* more efficent to do a client-side validation, especially when 99% of the people visting a corporate website will have JS enabled. The only modern computers I know to date that mostly have JS off are servers, and not too many surf the net on those ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.