teresevo Posted November 29, 2010 Share Posted November 29, 2010 I want to use jmol to display a structure file from a SQL database. I do not know how pass a string into <form>. thanks for helping! $names ="_".$row["name"]."_" .$row["potential"]."_".$row["upper_1"]."".$row["upper_2"]. "".$row["upper_3"]."_".$row["lower_1"]."".$row["lower_2"]."".$row["lower_3"]."_" .$row["angle"].""; $chars = array("&", "=", ";", "."); $newname = str_replace($chars, "", $names); $structure = "download/".$newname.".xyz"; <form id="jmol"> <script type="text/javascript"> jmolInitialize("../jmol-11.8.18"); jmolApplet(200, "load ../download/structure.xyz"); </script> </form> Link to comment https://forums.phpfreaks.com/topic/220153-phpform/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.