Jump to content

how do i run more than 1 action script from a form?


saco721

Recommended Posts

Hi,

 

I need to execute an sql query, then a paypal script from the same form. How do edit the code below to do this?

 

<?php

<form method=\"post\" action=\"https://www.sandbox.paypal.com/cgi-bin/webscr\" target =\"paypal\">

</form>

?>

 

any help would be greatly appreciated.

well.. there may be an easier way. lol. but here is a solution, i hope:

 

1. make the action point to the php page which has your query..

2. have in that php page a body onload command and make it submit a second form.

3. the second form will have all hidden text boxes with the values from the previous form.

4. make this form go to the paypal site.

 

i hope i made that clear, lol.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.