Reputation: 12497
I am wondering if this is a programmatically possible. I want to have a static site which can also be used to add items on a database existing on a different server and domain.
The flow for posting items is as follows:
Post Item Details -> Pay -> Confirmation Page
From what I can see, it is possible to post to a different domain (dynamic) like this without needing javascript:
<form action="http://post.test.com" id="form" method="post" name="contact-form">
My questions about this method are:
Upvotes: 0
Views: 94
Reputation: 507
Try using header('Location: http://www.example.com/');
to transfer them to the payment page.
Try using form validation to check if they have filled the form correctly before sending it.
Upvotes: 2