Append Login Credentials to URL

/ Published in: PHP
Save to your folder(s)

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. (ex : <a href=""> giochi online 1 </a> ) You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

Typical form with three bits of information that submits to a file called ftp.php

PHP file
This file reads in the POST variables (if they are set), builds the URL from them, and redirects to it. You'd probably want to clean up the POST variables for security purposes.

URL: giochigratis

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.