How do I interface a contract with a html web page?

I have written my smart contract, as a template.
My website has a text boxes for a user to input the variables for the contract.
ie. User 1 Address Users 2 Address
How would I take this information, and when the users hits submit. Actually submit the contract to the blockchain?
Thanks

Comments

  • JasperJasper Eindhoven, the NetherlandsMember Posts: 514 ✭✭✭
    Using eth.transact described here. Perhaps for instance Denny's lotto is a good example. To pick a line:
    eth.transact(key.secret(eth.keys()[0]), u256.ether(2), lottoAddr, u256.bytesOf(u256.value(ticketnum)), u256.value(10000), eth.gasPrice());
Sign In or Register to comment.