CodeIgniter Forums
naming forms in PHP - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: naming forms in PHP (/showthread.php?tid=19152)



naming forms in PHP - El Forum - 05-29-2009

[eluser]agubski[/eluser]
Guys,

I have borrowed following piece of code to call in JS module

<form name="testform">

<!-- calendar attaches to existing form element -->
<input type="text" name="testinput" />
[removed]
new tcal ({
// form name
'formname': 'testform',
// input name
'controlname': 'testinput'
});

[removed]
</form>

my form is called via - <?=form_open('place_add/insert_data');?>

Any idea how I can introduce a form name?

Thanks


naming forms in PHP - El Forum - 05-29-2009

[eluser]Yorick Peterse[/eluser]
[quote author="Alex_first time on PHP" date="1243637998"]Guys,

I have borrowed following piece of code to call in JS module

<form name="testform">

<!-- calendar attaches to existing form element -->
<input type="text" name="testinput" />
[removed]
new tcal ({
// form name
'formname': 'testform',
// input name
'controlname': 'testinput'
});

[removed]
</form>

my form is called via - <?=form_open('place_add/insert_data');?>

Any idea how I can introduce a form name?

Thanks[/quote]

It's in the userguide : http://ellislab.com/codeigniter/user-guide/helpers/form_helper.html


naming forms in PHP - El Forum - 05-29-2009

[eluser]agubski[/eluser]
Thanks. Just got through it. Got it all sorted.