vishal wrote:
i have one php script which generates html page containing form. what
i want is submit this form using php script.
pls give me some idea that how can i submit form using php code. it is
possible to submit form using javascript or vbscript but i am not
allowed to use javascript or vbscript in my project. so how can i do
it using php code??
You simply can't, because PHP is rendered on the server and sends the result
back to the browser. All interaction, like submitting a form, should be
handled by the client (by pressing a button or by using client-side
scripting). One question you could ask yourself, is when you want to
auto-submit a form generated by PHP, why generating the form at all and not
just process the input data at once?
When the goal of the form is to gather additional information (which it
usual is), just leave it up to the user to press the submit button when done
providing the required information.
JW