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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.