By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,847 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,847 IT Pros & Developers. It's quick & easy.

automatically fill and validate form

P: n/a
Hello,
I have a small problem in PHP an perhaps someone can help me:

I have a simple HTML login page with a username and a password field,
as well as a submit button, which I have to use for login(I cannot
simply replace it by a php-page :-().

is it possible to call this page via a hyperlink from a php-script and
to directly fill the username and password fields as well to raise the
event of clicking the submit button.
Goal is that I when click the hyperlink on the php-script, the
HTML-login form is automatically filled and the login is done
automatically without having to click on the submit-button.

Is this possible?

Thanx in advance
cb
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

If you need to send some variables holding a username
and a password somewhere, and you don't want to have
to fill them in, then don't Simply send the variables
directly to the destination.

I may have misunderstood what you ment though, so I'm
not sure my answer is accurate in regard to your question.

--
Fred H

void FredH::Contact() {
TextToSpeach.say("frode at age dee dee dot en oh");
}
Jul 17 '05 #2

P: n/a
bi*****@pt.lu (paul b) schrieb:
is it possible to call this page via a hyperlink from a php-script and
to directly fill the username and password fields as well to raise the
event of clicking the submit button.
Goal is that I when click the hyperlink on the php-script, the
HTML-login form is automatically filled and the login is done
automatically without having to click on the submit-button.


If I don't misunderstand your question, that's a task I use to solve
with the HTTP_Client package from PEAR for this task.
http://pear.php.net/package/HTTP_Client

Regards,
Matthias
Jul 17 '05 #3

P: n/a
> Goal is that I when click the hyperlink on the php-script, the
HTML-login form is automatically filled and the login is done
automatically without having to click on the submit-button.


You can use javascript to capture the location.search part of the url
where you would pass in the username and password.

Use the javascript variables to fill in your html form textboxes (username &
password).

Use a javascript function form.submit(); to automatically submit the form to
the proper
action string.
__________________________________________________ ______________
Wil Moore III, MCP | Integrations Specialist | Senior Consultant Business |
Personal
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.