faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

44 of 57 people (77%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I access data of form elements with php without having to submit the form to another script?

Aug 26th, 2000 05:51
Ben Parish, Nathan Wallace, Aranka Schwurack,


You cannot access form data from PHP unless that data is sent from the
client browser to the server.  PHP is running on the server and knows
nothing about the client unless it is explicity told through the
submission of form variables.

You could write some Javascript which passes the form values to another 
form in a hidden frame and submit that instead.