Welcome Guest, Not a member yet? Register   Sign In
naming forms in PHP
#1

[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
#2

[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-gui...elper.html
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB