Formmail validated by HTML (1)

Date 2007-09-04 06:00:47 | Category: XOOPS

in englishin japanese
I implemented "Formmail validated by HTML" for pico 1.50

You may ask "What is new?"

OK.
This system uses Template data written by HTML designer as "Validator".
You need not XML definition etc.

And I don't value the module like liaise or class of XoopsForm, because such HTML generating system kills the liberty for HTML design.

I believe this system makes both designers and programmers happy.

Anyway try to make a contents like this.

Filters: Turn 'Smarty(XoopsTpl)' on.
All of the rest options should be turned off.
(Also "body cache")


<{capture}>
<form>

<label for="yourname">Your Name</label>
<input type="text" name="yourname" id="yourname" class="required" />
<br />

Fruit:
<label for="checkbox_orange">orange</label>
<input type="checkbox" name="favorite_fruit[]" id="checkbox_orange" class="required" value="orange" />
<label for="checkbox_apple">apple</label>
<input type="checkbox" name="favorite_fruit[]" id="checkbox_apple" class="required" value="apple" />
<label for="checkbox_pear">pear</label>
<input type="checkbox" name="favorite_fruit[]" id="checkbox_pear" class="required" value="pear" checked="checked" />
<br />

<label for="youremail">email</label>
<input type="text" name="youremail" id="youremail" class="email" />
<br />

<label for="selbox">Select Box</label>
<select name="selbox" id="selbox" class="required">
	<option value="">-- select it --</option>
	<option value="0">0</option>
	<option value="1">1</option>
	<option value="2" selected="selected">2</option>
	<option value="3">3</option>
</select>
<br />

<label for="content">Content</label>
<textarea name="content" id="body"></textarea>
<br />

<input type="submit" value="Confirm" />
</form>
<{/capture}>
<{formmail}>




You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=437