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.
Hi Bob,
That is what I can't understand Where did I missed the Quote Here
Can you pl correct me.
Regards,
Shoaib
That is what I can't understand Where did I missed the Quote Here
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>";
Can you pl correct me.
Regards,
Shoaib
Hi shoaib,
You didn't miss a quote - you have single quotes round 'iframe' inside the single quotes round the whole rel attribute value
Bob
You didn't miss a quote - you have single quotes round 'iframe' inside the single quotes round the whole rel attribute value
rel='{handler: 'iframe', size: {x: 400, y: 400}}'
So it gets read as rel='{handler: '
Bob
Hi Bob,
I tried by removing the quote there But this does not works.
Can You give me the correct code to apply here๐
Regards,
Shoaib.
I tried by removing the quote there But this does not works.
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>";
Can You give me the correct code to apply here๐
Regards,
Shoaib.
Hi shoaib,
You have to escape the quotes (not remove) them. Escaping tells PHP to treat them as a part of the string and not as the next quote to be parsed. Try
Bob
You have to escape the quotes (not remove) them. Escaping tells PHP to treat them as a part of the string and not as the next quote to be parsed. Try
rel='{handler: \"iframe\", size: {x: 400, y: 400}}'
Bob
This topic is locked and no more replies can be posted.