You can't change the value of a textbox from a select element using PHP!
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
Yes, but by submitting the selected value with a page refresh could change the value of text box, right?
Yes you can - You can get the form post value from the $_POST superglobal array and write the value in another var or overwrite the previous post value. Just output the new value in the html portion.
PHP Code:
<?php
if ($_POST['ddm_value'] == 1) $_POST['txt_value'] = 'something';