PDA

View Full Version : sending a form...


nyl
01-08-2006, 12:18 AM
I built a contact form.
I'd like to have the contact form send the info through HTTP GET POST or something and give a feedback to the customer.
any clue on how to do it ?

thanks


__________

<canvas height="450" width="650">
<window x="20" y="20" width="340" height="260" title="Contact Window" resizable="false" closeable="true">
<view x="15" y="20">
<simplelayout axis="y" spacing="8" />
<view>
<text>Your name</text>
<edittext x="70" name="yourname" width="220" height="25"></edittext>
</view>
<view>
<text>E-mail</text>
<edittext x="70" name="email" width="220" height="25"></edittext>
</view>
<view>
<text>Password</text>
<edittext x="70" name="password" width="220" height="25"></edittext>
</view>
<view>
<text>Country</text>
<edittext x="70" name="country" width="220" height="25"></edittext>
</view>
<view>
<button x="140" y="10">SEND</button>
</view>
</view>
</window>
</canvas>

Geoff2010
01-09-2006, 07:11 AM
The form needs to be bound to an LzDataset using the <submit> tag. The LzDataset has functionality to post back the XML packet to the server... I would suggest starting here.

http://www.laszlosystems.com/lps-3.1.1/docs/reference/lz-form.html

sun_gui
01-10-2006, 01:01 AM
<form name="newpageform">
<submit name="submitter" data="${createpagedset}"/>

<statictext>desc:</statictext>
<edittext width="220" name="description"></edittext>

<button x="5" name="createbutton" isdefault="true" onclick="validate()" text="ok">
<method name="validate">
parent.submitter.submit();
</method>
</button>
</form>
------------------------
<dataset name="createpagedset" autorequest="false" type="http" src="${myGlobalUrl.path + 'metadata.do?method=createPage'}"/>