acid.waste Posted October 22, 2010 Share Posted October 22, 2010 I'm new to PHP So sorry if this is a nooby question, But i have 3 php pages, one asks for username, pass, database and host, and then posts it on the next php page. The next PHP Page asks if all the information is correct, with hidden inputs, and the values as the PHP settings, but wrapped in <?php ?> Example: <input type="hidden" name="user" value=<?php $user; ?> /> Will the above set the value of user to the PHP Value of $user? Link to comment https://forums.phpfreaks.com/topic/216607-set-input-text-to-a-php-value/ Share on other sites More sharing options...
Vettel Posted October 22, 2010 Share Posted October 22, 2010 This is what you need to do: <input type="hidden" name="user" value="<?php echo $user; ?>" /> Link to comment https://forums.phpfreaks.com/topic/216607-set-input-text-to-a-php-value/#findComment-1125403 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.