Jump to content

Print in html form


OriginalBoy

Recommended Posts

value="<?php echo $city; ?>"

 

That should do the job, as long as $city is set otherwise try something like this. I assuming the value is coming from some form. I will use POST but if you are using GET then change it

 

$city = isset($_POST['city']) ? $_POST['city'] : "";

 

then you can use the code above without getting any errors

 

Ray

Link to comment
https://forums.phpfreaks.com/topic/114277-print-in-html-form/#findComment-587631
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.