Hi,
I am Trying to open a contact us form in light-box but I am unable to do it.
Check this coding.
I am sure that the problem is after JHTML::_('behavior.modal');
in Echo Statement.
I want to use this only in php Echo Statement.
Regards,
Shoaib.
I am Trying to open a contact us form in light-box but I am unable to do it.
Check this coding.
<?php
$result=mysql_query("SELECT city,location,area, plotarea,bedroom,bathrooms,ageoftheproperty, saleprice,furnishing,propertyinfloor,totalfloors, description,name,mobilenumber,landlinenumber, emailid,smallimage,gallery1,gallery2, gallery3,gallery4 FROM buymultistoryapartment ")
or die("SELECT Error: ".mysql_error());
if($result)
{
while ($get_info = mysql_fetch_row($result))
{
echo "<table width=800px>";
echo "<tr>";
echo " <td><b>City:</b></td>". "<td> $get_info[0]</td>";
echo " <td><b>Location:</b></td>". "<td> $get_info[1]</td>";
echo " <td><b>Area:</b></td>". "<td> $get_info[2]</td>";
echo " <td><b>Plot Area:</b></td>". "<td> $get_info[3]</td>";
echo " <td><b>BedRoom:</b></td>". "<td> $get_info[4]</td>";
echo " <td><b>BathRooms:</b></td>". "<td> $get_info[5]</td>";
echo " <td><b>Age of Property:</b></td>". "<td> $get_info[6]</td>";
echo " <td><b>Price:</b></td>". "<td> $get_info[7]</td>";
echo "</tr>";
echo "<tr>";
echo " <td><b>Furnished:</b></td>". "<td> $get_info[8]</td>";
echo " <td><b>Property In Floor:</b></td>". "<td> $get_info[9]</td>";
echo " <td><b>Total Floor:</b></td>". "<td> $get_info[10]</td>";
echo " <td><b>Description:</b></td>". "<td> $get_info[11]</td>";
echo " <td><b>Name:</b></td>". "<td> $get_info[12]</td>";
echo " <td><b>Mobile:</b></td>". "<td> $get_info[13]</td>";
echo " <td><b>Phone:</b></td>". "<td> $get_info[14]</td>";
echo " <td><b>Email Id:</b></td>". "<td> $get_info[15]</td>";
echo "<td><img src=$get_info[16] /></td>";
echo "</tr>";
echo "<tr>";
echo "<td><img src=$get_info[17] /></td>";
echo "<td><img src=$get_info[18] /></td>";
echo "</tr>";
echo "<tr>";
echo "<td><img src=$get_info[19] /></td>";
echo "<td><img src=$get_info[20] /></td>";
echo "</tr>";
echo "</table>";
JHTML::_('behavior.modal');
echo "<a class='modal'
href='index.php?option=com_chronocontact&chronoformname=contactus'
rel='{handler: 'iframe', size: {x: 400, y: 400}}'
><input type='button' value='Contact Us' /> </a>";
}
}
?>
I am sure that the problem is after JHTML::_('behavior.modal');
in Echo Statement.
I want to use this only in php Echo Statement.
Regards,
Shoaib.