Need some quick help from the pro's....
Hi everyone! I'm having trouble figuring out how to do this...
People enter in their contact information on the fields provided in my website. I need these same fields to import into the fields on another website. Is this possible?
For example:::
I have a page on my website where people enter in their information such as name, address, email, etc. I need to take that info and automatically import it into the fields on this website:
I'm doing this for 2 reasons: 1. I can capture their info and 2. So people do not have to enter their information twice.
Is this possible? Thanks!
Chris
"In business you only have to make it once...."
timjpriebe posted this at 20:28 — 5th January 2006.
He has: 2,667 posts
Joined: Dec 2004
It is possible, but you'll have to store their information somewhere in the meantime. You could store it in a cookie.
When they fill out the first form, in addition to doing whatever your website already does with that info, also store it in a cookie. Then, on the second form, check if that cookie's there. If it is, populate the form with that info.
Tim
http://www.tandswebdesign.com
Renegade posted this at 20:37 — 5th January 2006.
He has: 3,022 posts
Joined: Oct 2002
You can also store them as session variables (in PHP).
Which ever way you decide, you're going to have to use server side programming because IMHO, it's the most efficient.
Does your host support any kind of server side language? ASP? PHP?
hardline posted this at 20:39 — 5th January 2006.
They have: 9 posts
Joined: Jan 2006
Do you know how I can set this up? The information from my website will go into a database and store their info my my use.
I am looking to get this done, but can't find any info. Any scripts available?
Chris
"In business you only have to make it once...."
hardline posted this at 20:40 — 5th January 2006.
They have: 9 posts
Joined: Jan 2006
Hmmm. I wouldn't know. It's on a temp host for now, but will probably get a dedicated soon.
Busy posted this at 09:04 — 6th January 2006.
He has: 6,151 posts
Joined: May 2001
You can't do this for different sites for security reasons
hardline posted this at 21:07 — 6th January 2006.
They have: 9 posts
Joined: Jan 2006
Hmmm.... There's gotta be a way. What if you can work with the other website to do this? Would it still be possible? If so what would you call this?
Chris
"In business you only have to make it once...."
chrishirst posted this at 00:56 — 7th January 2006.
He has: 379 posts
Joined: Apr 2005
yes it is possible simply by using a form to submit data via a POST. Many payment gateways allow you to prepopulate their forms in this way. It could also be handled as a POST operation from a server side script.
Exactly how and what fields are required would depend on the receiving site and what code is available at each end.
Chris
Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples
Busy posted this at 11:50 — 7th January 2006.
He has: 6,151 posts
Joined: May 2001
If the second site is not yours you can't or rather shouldn't do it
If the coder of the second site had any sense they would block any 3rd party injections, this is considered a sql injection - bad. And would have to be get method, not post
hardline posted this at 13:46 — 7th January 2006.
They have: 9 posts
Joined: Jan 2006
Hmm, any suggestions on how I can get this to work? If any of you guys can do this, I'd be willing to talk with you.
chrishirst posted this at 11:18 — 9th January 2006.
He has: 379 posts
Joined: Apr 2005
Busy why are saying this is some kind of security risk or SQL injection attempt. Yes using a form could certainly be used as a injection attack but a few simple measures at the receiving end can handle this risk.
It's a perfectly normal everyday operation between a ecommerce site and the payment gateway, Every merchant/gateway I have ever used has a means of passing any details (name, address,delivery address etc) from the cart pages to the gateway page should the person making the transaction wish to do this. Paypal has a field that the member login name can be sent.
Any kind of financial details of course should not be requested or sent unless over https secure connection.
A "GET" is also more at risk from SQL Injection as the data can be edited in the url.
hardline; Before anyone can help or suggest an exact method the server side code that is available at both points needs to be known.
Chris
Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.