473,320 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

two actions on single form submit

4
hi everybody

my form is posted to an 3rd party site on submit.. Now i want to store the textbox values in my database before posting the values to the 3rd party site..

thanks in advance
Aug 31 '07 #1
11 4162
nathj
938 Expert 512MB
hi everybody

my form is posted to an 3rd party site on submit.. Now i want to store the textbox values in my database before posting the values to the 3rd party site..

thanks in advance
Hi jeevik,

I don't think it's possible to have two actions on one form.

Perhaps you couldpost the data to a page on your site, read the information in to your database (with all the uesual securoity checks) then forward the data on to the 3rd party via another, hidden form.

I think the second form would have to submit itself somehow.

Unfortunatley you are going to have come up with some sort of 'fudge' as one from = one actions.

Cheers
nathj
Aug 31 '07 #2
ronnil
134 Expert 100+
it is actually possible to send post data from php. saw an example a couple of days ago... should have bookmarked it (damnit!) but i believe it was hidden in some library in the php manual link

This is definately the way, unless you want to use ajax and then post to your own site upon submit
Aug 31 '07 #3
Purple
404 Expert 256MB
Hi all,

you could use javascript to trap the submit event, open a new window, make a call to a php script in the background to copy the data to the database and then process the submit of the initial form normally..

Regards Purple
Aug 31 '07 #4
Purple
404 Expert 256MB
Hey Ronnil,

was it [PHP]HttpRequest::setPostFields[/PHP] or [PHP]HttpRequest::setRawPostData[/PHP] to set post data to be sent ?

Regards Purple
Aug 31 '07 #5
nathj
938 Expert 512MB
Not even my post and I'm learning loads.

This place is great!

nathj
Aug 31 '07 #6
pbmods
5,821 Expert 4TB
Heya, Jeevik.

You may find the last post in this thread useful.
Aug 31 '07 #7
ak1dnar
1,584 Expert 1GB
hi everybody

my form is posted to an 3rd party site on submit.. Now i want to store the textbox values in my database before posting the values to the 3rd party site..

thanks in advance
another way of doing this is;
Submit your form values to your own script which writes the form values to the database tables, Once completed task, print the collected form values again to another dynamic form. And for the body onload event of the page you can submit this form with values to the 3rd party website.
Aug 31 '07 #8
jeevik
4
thanks for all

i have got the solution ...
Sep 1 '07 #9
pbmods
5,821 Expert 4TB
Heya, Jeevik.

Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)
Sep 1 '07 #10
Can you post your solution if you have solved your issue.
Sep 20 '07 #11
thanks for all

i have got the solution ...
A few other new users are faced with the same problem. Were you successful?

Any feedback is welcome, thanks
Jan 11 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sophisticado | last post by:
Hi Newbie here. I am trying to have two form actions on submission using a javascript. The first calls a php class (http://www.blah.org/test.php) and the second adds data to a mySQL database...
1
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The...
9
by: Mark | last post by:
I have a lengthy form (i.e., many inputs) on my form.php page. What's different about this form than many others I've created is that I want the user to have a choice of submitting this form data...
13
by: axlq | last post by:
How do I create a form that two submit buttons, where each one submits the form input data to a different server? Consider this situation: I have a form where users can check various options to...
1
by: elia | last post by:
Hello, I can't do two actions wich must be done on a form having two buttons. (payment by invoice and payment by Credit card) The first action establishes a link on two differents pages...
1
by: cctham | last post by:
Hi, I have an issue with php and/or mysql. I have a php form that writes "items" to a mysql database, including a description of the item. I am testing it now by putting special characters in...
5
by: Tyrone Slothrop | last post by:
I have created a form which has two submit buttons. The first is a preview button to view the data they have entered into a formated page. The second actually submits the data for saving. The...
3
by: eholz1 | last post by:
Hello PHP programmers. I had a brilliant idea on one of my pages that selects some data from my mysql database. I first set the page up to display some info and an image, just one item, with a...
1
by: mrbadboy | last post by:
Hi, I need to submit multiple forms with using single button. I've mentioned my code below. <? if(isset($_POST)){ print_r($_POST); } ?> <script type="text/javascript">
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.