How do I insert this javascript: <script language="JavaScript" type="text/javascript" src="http://www.ABC.com/members/display.php?token=email"></script> Into the values of this: <input id="Email" name="Email" type="text" size="30" /><input name="emailagent" type="HIDDEN" class="textfield" id="emailagent" value=''INSERT JAVASCRIPT" />
I'm not getting what you mean. That is not javascript, that's a form. But it doesn't have any action or method attribute, so I'm assuming action is that display.php. So maybe you meant this? <form action="http://www.ABC.com/members/display.php" method="POST"> <input id="Email" name="Email" type="text" size="30" /><input name="emailagent" type="HIDDEN" class="textfield" id="emailagent" value=''INSERT JAVASCRIPT" /> </form> HTML: If not, then please elaborate.
i think this will help: <input id="Email" name="Email" type="text" size="30" /><input name="emailagent" type="HIDDEN" class="textfield" id="emailagent" value=''<script language='JavaScript' type='text/javascript' src='http://www.ABC.com/members/display.php?token=email'></script>"/>
I believe he wants to insert the output of this page 'http://www.ABC.com/members/display.php?token=email' into the value of input id="emailagent" If this is the case, it can be done with ajax.