You need to give the input tags an id, as follows:

<form name="createPDF" action="/pdf/pdf_process.php" method="POST">
<input type="hidden" id="A_NAME" name="A_NAME" value="John" />
<input type="hidden" id="APPLY_DATE" name="APPLY_DATE" 
value="<?=date("m/d/Y")?>" />
<input type="hidden" id="A_BIRTH_DATE" name="A_BIRTH_DATE" 
value="01/01/01" />
<input type="hidden" id="L_NAME" name="L_NAME" value="Jane" />
<input type="hidden" id="L_BIRTH_DATE" name="L_BIRTH_DATE" 
value="01/01/01" />
<input type="hidden" id="A_ACCOUNT" name="A_ACCOUNT" value="111111111" />
</form>

On 29/10/2009 15:08, Russell Keith wrote:
>
> Ok, maybe I'm just being dense, but I am reading the API for forms and 
> I am getting nothing from it.
>
> What is proper use of the $F utility and what can it do for me?  I 
> have read the |Form.Element.getValue and it means nothing to me.|
>
> | |
>
> |I have this form:|
>
> | |
>
> <form name="createPDF" action="/pdf/pdf_process.php" method="POST">
>
> <input type="hidden" name="A_NAME" value="John" />
>
> <input type="hidden" name="APPLY_DATE" value="<?=date("m/d/Y")?>" />
>
> <input type="hidden" name="A_BIRTH_DATE" value="01/01/01" />
>
> <input type="hidden" name="L_NAME" value="Jane" />
>
> <input type="hidden" name="L_BIRTH_DATE" value="01/01/01" />
>
> <input type="hidden" name="A_ACCOUNT" value="111111111" />
>
> </form>
>
> When I try to do alert($F('A_NAME')); I get an 'Object does not 
> support this property or method' error.  I get the same error when I 
> try to submit the form with 'document.createPDF.submit();' is there 
> something wrong with my form?
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to