• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Receive from HTML Form, Add some then submit to another server

yinyang

New Member
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)

FYI. My web hosting provider does not support curl and snoopy. :( :( :(

Please help.

Thank you in advance.
 
Well... IF your host has socket functions you proberbly be able to transfer the information through that. However i don't really recomend it that much if your on hosting plans since the hosts tend to upgrade their software and PHP's socket functions aint too stable at the moment. (the documentation clearly says FUNCTIONS MAY CHANGE WITHOUT NOTICE)

PS: im learning how to use sockets as well so dont bother asking me since im kinda stomped on it too...

note: www.phpfreaks.com may has a solution for your problem.
 
Back
Top