soycharliente Posted June 14, 2007 Share Posted June 14, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/ Share on other sites More sharing options...
simcoweb Posted June 14, 2007 Share Posted June 14, 2007 Do you mean have it emailed to multiple addresses? Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/#findComment-274574 Share on other sites More sharing options...
soycharliente Posted June 14, 2007 Author Share Posted June 14, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/#findComment-274578 Share on other sites More sharing options...
smc Posted June 14, 2007 Share Posted June 14, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/#findComment-274590 Share on other sites More sharing options...
soycharliente Posted June 14, 2007 Author Share Posted June 14, 2007 And then comes the obvious question.... What if it's off? Are they just SOL? Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/#findComment-274592 Share on other sites More sharing options...
smc Posted June 14, 2007 Share Posted June 14, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/#findComment-274600 Share on other sites More sharing options...
soycharliente Posted June 14, 2007 Author Share Posted June 14, 2007 I don't know if you could classify them as a corporation. LOL Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/55576-solved-form-sent-to-2-sites/#findComment-274603 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.