php1 Posted September 23, 2008 Share Posted September 23, 2008 I have one text box which displays the directory name. code: main.php[ <?php $source = "/var/www/html/source/"; ?> <form action=next.php" methos="POST"> <input type="text" name="sdir" value ="<?php echo $source;" ?> </from> next.php echo $_POST['sdir]; It displays the value. But if I edit the value and echo's the value in next page the new value is not coming still it shows the old value is there any way to use a predefined value when the page is loaded and to change the value whenever needed Link to comment https://forums.phpfreaks.com/topic/125429-solved-problem-with-text-box-value/ Share on other sites More sharing options...
ranjuvs Posted September 23, 2008 Share Posted September 23, 2008 spelling mistake change methos to method <form action="next.php" method="POST"> Link to comment https://forums.phpfreaks.com/topic/125429-solved-problem-with-text-box-value/#findComment-648485 Share on other sites More sharing options...
php1 Posted September 23, 2008 Author Share Posted September 23, 2008 thank u for ur reply... i have used onfocus() and onblur events. Link to comment https://forums.phpfreaks.com/topic/125429-solved-problem-with-text-box-value/#findComment-648498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.