4
I have a input
in a form, however it should not have its value changed:
<input type="text" name="pais" value="">
How can I stop the value from being changed?
<!DOCTYPE html>
<html>
<body>
<form action="/action_page.php">
Pais: <input type="text" name="pais" value=""><br>
Estado: <input type="text" name="estado" value=""><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Placing the property readonly?
– JuniorNunes
Use readonly="true"
– Igor Carreiro
pq was put the tags PHP and javascript ? vc qer a solution with these languages ? or readonly is enough ?
– Vinicius Shiguemori
could have a solution in php and javascript too !!!
– alexjosesilva