0

I need to insert the url typed in by User:

<input name="endereco" type="text" size="90" maxlength="900" />

in:

document.location.href = "IN_HERE";

Something Similar to:

document.location.href = "$ _POST [" address "]";

or

echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=$_POST["endereco"]'>";

to open the link previously entered by the User ... how do?

1

1 Answer 1

0
<input type="text" name="endereco" id="endereco">
<script>
$(document).ready(function() {
var url=document.getElementById("endereco").value;
document.location.href=url;
});
</script>

echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=<?php echo $_POST["endereco"];?>'>";
Sign up to request clarification or add additional context in comments.

1 Comment

Thankssss \o great

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.