Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

post information

Status
Not open for further replies.

KryptoS

Programmer
Feb 7, 2001
240
BE
Hey,

Can I post a form without pushing on the submit button? With other words: is there a php-code that can submit a form?

greetz


The One And Only KryptoS
 
No, there is not. PHP is a server-side language.

You're going to have to do it through a client-side language. JavaScript is the most common. ______________________________________________________________________
TANSTAAFL!
 
Wait, let me re-interpret your question and answer it differently.

Yes, PHP can send data to a CGI script on a server. If you have to get the data into the script via the GET-method, it's as simple as creating the right URL string and using fopen().

If you need to send POST-method data to a CGI script, please take a look at my FAQ in this forum: faq434-2502. It's a little more complicated than GET-method, but not a lot so. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top