Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 07:03:20 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ Receive HTML Form, add some then submit it to other server
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: Receive HTML Form, add some then submit it to other server  (Read 4039 times)
imlek
Guest
« on: August 22, 2004, 04:38:34 AM »

Hi,

I need help to make php scripts to receive value from HTML FORM then add some value, then post all the value to destination address.

file1.html will have this:
<form name="form1" action="file2.php" method="post">
<input type="hidden" name="Cust" value="John Doe">
<input type="hidden" name="Total" value="100">
<input type="submit" value="Submit">
</form>

file2.php will do:
1. Add Login = "My-Username"
2. Add Passwd = "My-password"
3. With Cust and Total from file1.html, file2.php post all the 4 value (Plus Login and Password) to destination-otherdomain.com (http://destination-otherdomain.com/receiver)

Please help.

Thank you in advance.
Report to moderator   Logged
Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #1 on: May 20, 2005, 08:34:43 PM »

Sorry I'm late to repy on this one but the php fopen command can do this:

http://uk2.php.net/function.fopen

It can take a url as the file to open parameter and you can append your data as: ?item1=data1&item2=data2 etc.

Unfortunately this will use the GET method of transfering data. If you dig a bit deeper, maybe there is a way to send hidden post data?
Report to moderator   Logged

alwaysweb
Limited Member

Posts: 2


« Reply #2 on: January 15, 2007, 07:20:44 PM »

You can use CURL support in PHP to load/post to another server behind the scenes in your form processing script.  A getting started guide is at:  http://blog.unitedheroes.net/curl/
Report to moderator   Logged
Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ Receive HTML Form, add some then submit it to other server

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!