blackice99
New Member
I am making and update DB form. I load the update form with php, rendering the data to be updated from the DB.One of the form fields is an input textfield containing the filename of an image.
In this form I want to select a new image (), and after selecting an image, insert the selected filename of the image in the input textfield.This is the part of CMS_formSchema_list.php.It loads a list of posts, and every post has an update button.When the button is clicked, a form action send via to itself the $_POST['update_ID'], and loads the update form populated with the data of update_ID.\[code\] if (isset($_POST['update_ID']) and $_POST['update_ID']==$row_ID){ echo '<tr style="background-color:#DDD">'; echo '<td colspan="9"><form action="" method="post">'; $functionDisplay = 'Editar ID:'.$_POST['update_ID']; echo $functionDisplay.'<br>'; if(!include 'CMS_formSchema_edit_inline.php'){ echo "CMS_formSchema_edit_inline.php include error!!!!"; } echo '</td>'; echo '</tr>'; }\[/code\]I perform the load of the update form via include 'CMS_formSchema_edit_inline.php'Reached this point everything is fine, and working properly. I don't know why after selecting it's not populating the 'Archivo' textfield with the $_FILES['fileup']['name']. What should I do to load the filename in the textfield?.\[code\] <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="fileup" style="width:450px;"/><br/> <input type="hidden" name="update_ID" value="http://stackoverflow.com/questions/15606862/<?php echo $_POST['update_ID'] ?>"/><br/> <p class="white caption">A?o (YYYY):<br/><input id="year" type="text" name="year" maxlength="4" size="40" value="http://stackoverflow.com/questions/15606862/<?php echo $post_A?O ?>"/><br/> Secci
In this form I want to select a new image (), and after selecting an image, insert the selected filename of the image in the input textfield.This is the part of CMS_formSchema_list.php.It loads a list of posts, and every post has an update button.When the button is clicked, a form action send via to itself the $_POST['update_ID'], and loads the update form populated with the data of update_ID.\[code\] if (isset($_POST['update_ID']) and $_POST['update_ID']==$row_ID){ echo '<tr style="background-color:#DDD">'; echo '<td colspan="9"><form action="" method="post">'; $functionDisplay = 'Editar ID:'.$_POST['update_ID']; echo $functionDisplay.'<br>'; if(!include 'CMS_formSchema_edit_inline.php'){ echo "CMS_formSchema_edit_inline.php include error!!!!"; } echo '</td>'; echo '</tr>'; }\[/code\]I perform the load of the update form via include 'CMS_formSchema_edit_inline.php'Reached this point everything is fine, and working properly. I don't know why after selecting it's not populating the 'Archivo' textfield with the $_FILES['fileup']['name']. What should I do to load the filename in the textfield?.\[code\] <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="fileup" style="width:450px;"/><br/> <input type="hidden" name="update_ID" value="http://stackoverflow.com/questions/15606862/<?php echo $_POST['update_ID'] ?>"/><br/> <p class="white caption">A?o (YYYY):<br/><input id="year" type="text" name="year" maxlength="4" size="40" value="http://stackoverflow.com/questions/15606862/<?php echo $post_A?O ?>"/><br/> Secci