Jump to content

[SOLVED] Problem with text box value


php1

Recommended Posts

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.