Jump to content

Set input text to a PHP Value?


acid.waste

Recommended Posts

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

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.