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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i do a submit?

Status
Not open for further replies.

beco73

Programmer
May 8, 2005
157
CA
Hi,

I have a website A, where person enters 'User name' and "Passowd" and click "login". Then I want to send them to this other website with the values of Password and username.

Now can I do a sumit, or since it is a different website all together i can only do it by creating a URL? and do a javascript "location"

thanks
 
thanks, before I send it to other site I need to do validatation in javascript. So why not I send it through Javascript "location" command instead of PHP. Problem I see there that password will be going in URL whcih is not right, same if I use PHP. what you think about form submit?
 
What happens to your code if the user has Javascript turned off? Why can't you do all your validation and other work in PHP.

I rarely use Javascript except when I have to, like to make CSS menus work on MSIE and when interfacing with the Google Maps API.

Is the page you're sending the password to on a completely different domain? If not, you can use the $_SESSION array to pass it to the next script, assuming the script is written in PHP.

Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top