Jump to content

php/form


teresevo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.