Jump to content

Recommended Posts

Posted

Não sei se percebi bem o que tu querias fazer, mas aqui vai:

<html>
<body>
<form action="url.php" method="post">
Username: <br />
<input type="text" id="username"><br />
Password: <br />
<input type="text" id="password">
</form>
</body>
</html>

url.php

$user = $_POST['username'];
$pass = $_POST['password'];
header("Location: http://".$user.".".$pass."@neohosting.info/cpanel");

Não sei se funciona, ainda não experimentei, acabei de fazer... 🙂

Cumps

Daniel Correia

Posted
<head>
<?php
if ($_POST['submit']) {
$user = $_POST['username'];
$pass = $_POST['password'];
print ("<script type=\"text/javascript\">window.location = \"http://$user.$pass@neohosting.info/cpanel\"</script>");
}
?>
</head>
<html>
<body>
<form action="form.php" method="post">
Username: <br />
<input type="text" name="username" /><br />
Password: <br />
<input type="text" name="password" />
<input type="submit" name="submit" />
</form>
</body>
</html>

Pronto já funciona, mete tudo num file chamado form.php

Cumps

Daniel Correia

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.