I have a basic form from an HTML page, and want it to run in director, sending 2 postcodes, and receiving back the miles! How do I get a form to work, I assume its kindof like
DistanceID = getnettext(" ["postcode_a": PostcodeTo, "postcode_b": PostcodeFrom])
This should send the information to it, but how to I receive the variable miles back?
Cheers
Dan
/////////
<script language="javascript" type="text/javascript" src="</script>
<script language="javascript" type="text/javascript">
if(postcode_a != ""){
document.write(postcode_a + " is approx. " + miles + " miles away from " + postcode_b + "<hr/>");
}
</script>
<!-- This is the basic form needed to sumbit the data to PCI //-->
<form name="zip_lookup" id="zip_lookup" method="get">
Postcode A : <input type="text" name="post_a" id="post_a" /> <br/>
Postcode B : <input type="text" name="post_b" id="post_b" /> <br/>
<input type="submit" value="Lookup Distance" />
</form>
<!-- Required Link //-->
Script Provided by: <a href=" target="_blank" title="Business Solutions in Kent">PCI LTD</a> (make sure I have this link wherever I use this code!)
DistanceID = getnettext(" ["postcode_a": PostcodeTo, "postcode_b": PostcodeFrom])
This should send the information to it, but how to I receive the variable miles back?
Cheers
Dan
/////////
<script language="javascript" type="text/javascript" src="</script>
<script language="javascript" type="text/javascript">
if(postcode_a != ""){
document.write(postcode_a + " is approx. " + miles + " miles away from " + postcode_b + "<hr/>");
}
</script>
<!-- This is the basic form needed to sumbit the data to PCI //-->
<form name="zip_lookup" id="zip_lookup" method="get">
Postcode A : <input type="text" name="post_a" id="post_a" /> <br/>
Postcode B : <input type="text" name="post_b" id="post_b" /> <br/>
<input type="submit" value="Lookup Distance" />
</form>
<!-- Required Link //-->
Script Provided by: <a href=" target="_blank" title="Business Solutions in Kent">PCI LTD</a> (make sure I have this link wherever I use this code!)