For that purpose, you would be better off using the profile module, which will allow you to add fields, and which will also allow you to include those fields in the user registration form.<br><br>Look, Ma, no PHP!<br><br>Victor Kane<br>
<a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br><br><div class="gmail_quote">On Tue, Dec 16, 2008 at 9:45 AM, bharani kumar <span dir="ltr">&lt;<a href="mailto:bharanikumariyerphp@gmail.com">bharanikumariyerphp@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi victor ,, <br><br>Then we have to write the alter_form in the function .module file only know, am correct or not<br>
<br>for example i want to put the firstname and lastname in the default registeration page (ie . user.module )<br>

<br>then i have to write the code in the user.module only know ...<br><br>thanks<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Tue, Dec 16, 2008 at 3:06 PM, Victor Kane <span dir="ltr">&lt;<a href="mailto:victorkane@gmail.com" target="_blank">victorkane@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If you want to persist the field you add via form_alter, you must create a table in the database and add a custom SQL statement to save the data, perhaps via hook_nodeapi with op &#39;submit&#39;.<br>

<br>See <a href="http://api.drupal.org/api/function/hook_nodeapi/5" target="_blank">http://api.drupal.org/api/function/hook_nodeapi/5</a> <br><font color="#888888">
<br>Victor</font><div><div></div><div><br><br><div class="gmail_quote">2008/12/16 bharani kumar <span dir="ltr">&lt;<a href="mailto:bharanikumariyerphp@gmail.com" target="_blank">bharanikumariyerphp@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I thing u r referring the module ,,,<br><br>Ya i saw that , but form_alter module still DEV,<br><br>but i wan to learn , &quot;modifying&nbsp; the forms using the code snippet &quot;<br><br>Thanks<div><div></div><div>
<br><br><br><br><br><br><div class="gmail_quote">
On Tue, Dec 16, 2008 at 2:48 PM, Victor Kane <span dir="ltr">&lt;<a href="mailto:victorkane@gmail.com" target="_blank">victorkane@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



It would be a lot easier to add the field permanently to the content type, instead of adding it via form_alter.<br><br><div class="gmail_quote">2008/12/16 bharani kumar <span dir="ltr">&lt;<a href="mailto:bharanikumariyerphp@gmail.com" target="_blank">bharanikumariyerphp@gmail.com</a>&gt;</span><br>




<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div><br>Hi i find the solution , <br><br>i&nbsp; coded into my&nbsp;&nbsp;&nbsp; examplemodule<b>.module</b> file,<br>




<br>i guess am correct ,<br><br>Then next step , i want to store that textfield values into my database , <br><br>For that i thing i have to written small snippet into the install file or tell me what i do, <br>
<br>simple my point is i want store the textfield values into my DB<br><br><br><br><br><br><br><br><div class="gmail_quote">On Tue, Dec 16, 2008 at 12:49 PM, bharani kumar <span dir="ltr">&lt;<a href="mailto:bharanikumariyerphp@gmail.com" target="_blank">bharanikumariyerphp@gmail.com</a>&gt;</span> wrote:<br>





<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Hi<br><br>i want to alter the birthday module form ,<br><br>like want to add one text area,So can u tell me , where i write the alter form code,<br>





<br>in the birthday.module file ,<br><br>Or where i write the form alter code<br>
<br>thanks<br clear="all"><br>-- <br>உங்கள் நண்பன் <br>பரணி &nbsp;குமார் <br><br>Regards<br>B.S.Bharanikumar<br><br>POST YOUR OPINION <br><a href="http://bharanikumariyer.hyperphp.com/" target="_blank">http://bharanikumariyer.hyperphp.com/</a><br>






<a href="http://bharanikumariyerphp.site88.net/" target="_blank">http://bharanikumariyerphp.site88.net/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>உங்கள் நண்பன் <br>பரணி &nbsp;குமார் <br><br>Regards<br>B.S.Bharanikumar<br><br>POST YOUR OPINION <br><a href="http://bharanikumariyer.hyperphp.com/" target="_blank">http://bharanikumariyer.hyperphp.com/</a><br>





<a href="http://bharanikumariyerphp.site88.net/" target="_blank">http://bharanikumariyerphp.site88.net/</a><br>
<br></div></div>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>உங்கள் நண்பன் <br>பரணி &nbsp;குமார் <br><br>Regards<br>B.S.Bharanikumar<br>



<br>POST YOUR OPINION <br><a href="http://bharanikumariyer.hyperphp.com/" target="_blank">http://bharanikumariyer.hyperphp.com/</a><br><a href="http://bharanikumariyerphp.site88.net/" target="_blank">http://bharanikumariyerphp.site88.net/</a><br>



</div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>
</div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>உங்கள் நண்பன் <br>பரணி &nbsp;குமார் <br><br>Regards<br>B.S.Bharanikumar<br>

<br>POST YOUR OPINION <br><a href="http://bharanikumariyer.hyperphp.com/" target="_blank">http://bharanikumariyer.hyperphp.com/</a><br><a href="http://bharanikumariyerphp.site88.net/" target="_blank">http://bharanikumariyerphp.site88.net/</a><br>

</div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>