473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

automatically fill and validate form

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
3 3797

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
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: netsurfer | last post by:
Hi: Have a question on making the date automatically filled in by what the user enters in by the date at the top. The date entered at the top would most likely be on a Wednesday then I need...
1
by: Charles Robinson III | last post by:
When selecting a option from a drop down menu in the form view, which is linked to a table with three columns, how do I get Access to automatically fill in two other fields automatically once the...
7
by: jballard | last post by:
Hello, I have a database set-up with a form and two subforms in it. I have one of the subforms (replacement parts) set-up where you can pick part numbers from a drop down box and also pick a...
1
by: Dan | last post by:
Hi, I have a requirement where in I need to automatically fill a web form and trigger events on the web form automatically. Firstly can this be done. For example: I have a site say xyz.com which...
10
by: RoadRunner | last post by:
Hi, I have a employee vacation database that has a vacation table that has the employee name, pay week and date of vacation. I have another lookup table with pay week code and date range for the...
2
by: oscarphp | last post by:
Hello, I am trying to create a form that asks for info and will take the user input (name, email, etc) and automatically fill out a form in a different website outside of my control. Any...
3
by: Jackie Wang | last post by:
Dear all, I want to automatically complete the following task: 1. Go to http://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form "Street Address:" . e.g. "1316 State...
3
by: shripal | last post by:
hello,every one i have made the application to fill up the web form automatically in c#.net but i am not able to submit the form automatically that is submit button should be pressed automatically...
1
by: schlow09 | last post by:
Hey everyone, hoping someone could lend me a hand here... I'm trying to create a button in a form that will automatically send an email with a report. However this report can vary depending on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.