Hello, Not sure how to call thing i need: I trying to create a form submitting in two parts: After form is submitted content will go to form1 who will check some things and add visitors ip. Wan content will be posted again but it will be submitted to form2 who will save content in text. Any ideas how submit from form1 to form2 in background? I was thinking on using header('Location: http:url.com/index.php?contactus=sent&something=1&text=234'); but is there other ways? Thanks
No there are no otherways, except if you like to include the page again, but that's not realy an option.
You can use sessions of course, and carry the data from page to page that way http://www.php.net/manual/en/ref.session.php http://www.w3schools.com/PHP/php_sessions.asp http://www.tizag.com/phpT/phpsessions.php They should get you on your way
Well i actually in very confusing situation: one host supports writing to file, but doesn't show ip, and second shows ip, but does not support SMTP and writing to file. I am not sure about sessions, because first form collector and checker is on one server, and writer to file in other
You could use my HTTP socket wrapper =] http://www.rcadble.net/viewcode.php?id=20 $wrapper = new sWrapper(); $html = $wrapper->request("POST", "http://www.somesite.com/page.php", "http://www.somesite.com/referer.php", "data1=hello&data2=there&data3=supd00d"); Code (markup):
Btw u want this process in one time? or user must click twice? if u want to click twice just put var from post in from 1 with type="hidden" but if u want to be in one proccess i think just arrange ur php in single php i think Thnx
You could also use the function acp_add... http://us2.php.net/manual/en/function.apc-add.php pretty cool function and then get the the variable later with http://us2.php.net/manual/en/function.apc-fetch.php im pretty sure this does the same thing as acp_add... http://us2.php.net/manual/en/function.apc-store.php