0

I'm breaking my head with this and can not get it to work, I hope someone can help me put the PHP code within the variable $html specifically where the symbols #########################

Code PHP:

if(isset($_POST['submit'])) {$ciudad_id = $_POST['ciudad']; if($ciudad_id == $v1->id) echo 'selected="selected"';}

Insert here (###...):

<?php
$html = '<option value="">Selecciona ciudad</option>';

foreach ($Ciudades as $v1) { 
 $html .= '<option value="'.$v1->id.'" ######################### >'.$v1->ciudad.'</option>';
} 

echo $html;
?>

Thank you very much for your help, I'm desperate...

GePraxa
  • 67
  • 1
  • 17

0 Answers0