Link to home
Start Free TrialLog in
Avatar of ststesting
ststesting

asked on

php POST "function"?

I have a form that calls a function that inserts the fields in a database.

I can also POST that information to a payment processing company's page.

How can I do both? (and in that order...?)
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Please post the code that shows your progress on this question.

Also, please see the comment in this question.  I think it would be good to explain what happened there.
https://www.experts-exchange.com/questions/28044975/concat-php-array-variables.html?anchorAnswerId=39262764#a39262764
Avatar of Jagadishwor Dulal
As Ray write better to post the progress code:
<?php
if(isset($_POST['yoursubmit'])){
//Fetch all data from form like
$fname=$_POST['fname']; //assume you are using fristname
$lname=$_POST['lname'];
//call here the	insert function
//if insert is success post values to the payment process as you can see the values are in variables now
	
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ststesting
ststesting

ASKER

This is exactly what I was looking for.

Thanks! (to everyone)