
November 11th, 2006, 07:13 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 1
Time spent in forums: 5 m 2 sec
Reputation Power: 0
|
|
|
Pasing javscript varibale to a form or php script
Hi there,
ive been searching fro the answer to this problem for about 4 days now and now its becomming rather frustrating. Im wondering if some one can help me...
i have a signature java applet which after it has been used spits out a variable which is a load of x and y co-ordinates. what i want to do with out auccess is either post these directly to a php form or set it up to go to a form so that it can be submitted.
heres the code
Code:
<html>
<body>
<form>
<h1>Signature Capture</h1>
<hr>
<applet name='mysig' code='SigBlock.class' width=301 height=76>
<param name=text value="Signature">
<param name=font value="Arial">
<param name=fontsize value=42>
<param name=fontstyle value="italic">
<param name=fontx value=10>
<param name=fonty value=50>
<param name=appwidth value=200>
<param name=appheight value=75>
<param name=linestyle value=2>
</applet>
<input type='button' name='sign' value='Sign' onClick='text1.value=mysig.sign();'>
<textarea name='text1' cols='65' rows='20' wrap></textarea>
</form>
</body>
</html>
basically when sign is pressed it dumps the applet varibales to a text area for viewing which is fine, but fro that code does any one know a work around where it can either be submitted directly to a php script or dump as a hidden input field ready for submission with a form.
and ideas would be great
Alan
Last edited by MadCowDzz : November 16th, 2006 at 08:01 AM.
Reason: Added [code] tags
|