Passing data form to form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
computerhobbit
Forum Newbie
Posts: 3
Joined: Tue Apr 01, 2008 9:02 pm

Passing data form to form

Post by computerhobbit »

I have been hacking for several years and tend to find answer on my own, but IM STUCK...

Setup
1. Form(1) populated with data
2. Form(2) needs CERTAIN data from Form(1)
3. Cannot access Form(1)/Form(2) backend data or code. Meaning I cant pull the data I need from the backend or code from inside the forms.

I need a PHP script to pull portions of the Form(1) data and enter it into Form(2). Thank you for your help :banghead:
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Passing data form to form

Post by Christopher »

Make both forms a single PHP script that passes everything to itself and track the state of the sequence.
(#10850)
computerhobbit
Forum Newbie
Posts: 3
Joined: Tue Apr 01, 2008 9:02 pm

Re: Passing data form to form

Post by computerhobbit »

As #3 states, I dont have code access to either form. I need an in between form to get data from one form to another. Also I might be using FORM to loosely.

1. Form(1) is a list of data
2. Form(2) is a true Form with text fields

I need to get data from Form(1) to text fields in Form(2) and I dont have ANY access to either Form(1) or Form(2). Thanks.
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Passing data form to form

Post by EverLearning »

1. use curl to get data from list of data(Form(1) as you call it)
2. parse received data to extract what you need
3. post data to Form(2) using curl
AMCH
Forum Commoner
Posts: 31
Joined: Sun Mar 30, 2008 4:39 pm

Re: Passing data form to form

Post by AMCH »

computerhobbit wrote:As #3 states, I dont have code access to either form. I need an in between form to get data from one form to another. Also I might be using FORM to loosely.

1. Form(1) is a list of data
2. Form(2) is a true Form with text fields

I need to get data from Form(1) to text fields in Form(2) and I dont have ANY access to either Form(1) or Form(2). Thanks.
What do you mean you don't have 'code' access to either form. Are you suggesting that you are trying to mess up someone else's website? :evil:

This is really not a nice thing to do and I hope you are not. :|
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Passing data form to form

Post by John Cartwright »

AMCH wrote:
computerhobbit wrote:As #3 states, I dont have code access to either form. I need an in between form to get data from one form to another. Also I might be using FORM to loosely.

1. Form(1) is a list of data
2. Form(2) is a true Form with text fields

I need to get data from Form(1) to text fields in Form(2) and I dont have ANY access to either Form(1) or Form(2). Thanks.
What do you mean you don't have 'code' access to either form. Are you suggesting that you are trying to mess up someone else's website? :evil:

This is really not a nice thing to do and I hope you are not. :|
Explaining why you need to do this may help us show you other approaches as well.
computerhobbit
Forum Newbie
Posts: 3
Joined: Tue Apr 01, 2008 9:02 pm

Re: Passing data form to form

Post by computerhobbit »

LMAO, NO WAY.....This is for works. I am trying to make a process better....I work for 2 vendors and have to enter information from list of data to a form, but since I am outsourced, I only have certain rights. BTW, there are tools like ROBOFORM, but I dont think that will work. :crazy:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Passing data form to form

Post by John Cartwright »

computerhobbit wrote:LMAO, NO WAY.....This is for works. I am trying to make a process better....I work for 2 vendors and have to enter information from list of data to a form, but since I am outsourced, I only have certain rights.
Why is this funny? If you work for them, then I'm sure you will be able to get permission to modify the forms if it's obstructing being able to do your job!

We'll in that case, go with EverLeaning's advise.
Post Reply