Creating XHTML valid PayPal Forms

Hi,
Trying to create an XHTML valid paypal form for view cart, etc. This is the code from the paypal website:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value=".............">
<input type="hidden" name="display" value="1">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_viewcart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
My solution so far is:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<fieldset class="paypal">
<div class="paypal">
<input type="hidden" name="cmd" value="_cart"/>
<input type="hidden" name="business" value="............."/>
<input type="hidden" name="display" value="1"/>
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_viewcart_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." />
<img alt=""src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
</div>
</fieldset>
</form>
The last error is with regard to the <form target=" "> I have experimented using JavaScript:
<script type="text/javascript">
//<![CDATA[
function submitform()
  document.myform.submit();
//]]>
</script>   
But not sure once I name the script if I can just remove target??
Any help would be greatly appreciated.
Regards,
Ozan89

1) Do we need to use WML renderkit for displaying information on a PDA.
- I'm not too experienced with PDA's, but I'm guessing most of them (new ones) support XHTML these days. You could easily use JSF for this. Which PDA's are you going to support? Is there a specific set of them or just about any PDA out there?
2) How can I develop a single JSP/JSF page and display both on laptop browser and PDA browser.
-If the PDA browser supports XHTML you could do CSS styling based on the user agent so that the page displays differently on the two.
3) Can plain HTML support this funtionality
- Again I'm not sure about PDA compability here, but I would think that many PDA's support plain HTML.
4) Are there examples which demonstrates developing this kind of application:
The WALL project seems like a good place to start searching.

Similar Messages

  • How to create validation only for created rows in tabular form

    Hi all,
    I have a simple question. Is it possible to create a validation for tabular form which will be fired only for created?
    There is a possibility in APEX 4.1 to choose two types of "*Execution scope*" first is "*For created and Modified Rows*" and second is "*All Submitted Rows*".
    Thanks in advance!
    Regards,
    Jiri

    Hello Jiri,
    >> Is it possible to create a validation for tabular form which will be fired only for created?
    You can still use the scope of For created and Modified Rows and use a PL/SQL Expression condition of:
    :APEX$ROW_STATUS = 'C'You also need to change Execute Condition to For Each Row .
    Hope it helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • XHTML Validation and Accessibility

    We've recently completed developing some Application Express systems for a customer, and they were disappointed the pages did not pass W3C XHTML validation to meet their accessibility targets.
    I've had the chance to do a bit of a post-mortem and nailed some issues that were down to our templates. I've also noted some previous threads here (notably Re: Validation!!! and Re: HTML DB and Accessibility (AA-Compliance) and look forward to resolution of markup validation issues in future releases. In the meantime, here are the most frequent problems we encountered. I'd appreciate any explanations, and any suggestions on how to improve matters in the short term.
    INVALID ENTITIES
    The majority of the validation errors are like:
    Cannot generate system identifier for general entity "p_fname"
    General entity "p_fname" not defined and no default entity
    Reference not terminated by REFC delimiter
    Reference to external entity in attribute value
    Reference to entity "p_fname" for which no system identifier could be generated
    Entity was defined here
    Where the App Ex engine is generating internal URLs and not escaping ampersands, that are then interpreted by the validator as forming part of an entity. This isn't disastrous, but an early fix in a future release would be welcome as it would reduce the number of errors and make it easier to spot any arising from invalid template code.
    Am I right in thinking that storing CSS, images and scripts externally to App Ex would eliminate this?
    STANDARD HTML BUTTONS
    All "HTML Buttons" result in:
    Value of attribute "type" cannot be "BUTTON"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"                    
    There is no attribute "onClick"                         
    End tag for "input" omitted, but OMITTAG NO was specified
    Where the engine is generating an attribute value in uppercase and attribute names in camel-hump case instead of all lowercase. We can work round this by creating an "HTML Button" template with valid attributes and values.
    ITEM LABEL
    Reference to non-existent ID "P1_DATASET_CATEGORIES"
    Where the label is the overall label for a checkbox item with multiple checkboxes, all of which have their own valid label. Should the engine include the checkbox item as a hidden item? Can we work round this by doing that manually, e.g. in Post Element Text?
    HEADERS
    Reference to non-existent ID "GV_VALUE"
    Where a report has report has Headings Type "None" and hence no &lt;th&gt;s for headers attributes to refer to. Is there a workaround for this?
    REPORT BREAK FORMATTING
    End tag for "br" omitted, but OMITTAG NO was specified
    &lt;br&gt; tags inserted by break processing within the engine are not terminated " /&gt;". This is not controllable by any template (that I am aware of) - anything that can be done?
    TEXT FIELDS
    This is rather puzzling, as it seems to be random: items on some pages are affected, those on others are not. Anyone have an explanation?
    There is no attribute "TYPE"
    There is no attribute "NAME"
    There is no attribute "SIZE"
    There is no attribute "MAXLENGTH"
    There is no attribute "VALUE"
    There is no attribute "id"
    Element "INPUT" undefined
    End tag for "INPUT" omitted, but OMITTAG NO was specified
    Reference to non-existent ID "P5_ENTRIES_DISPLAYED"
    Where the engine is generating an element and attribute names in uppercase instead of all lowercase. From earlier threads, I'm presuming nothing can be done at present.
    HYPERLINK
    There is no attribute "HREF"
    Element "A" undefined
    As above: element and attribute names in uppercase instead of all lowercase.
    TABLE HEADING/DATA ALIGNMENT
    Value of attribute "align" cannot be "LEFT"; must be one of "left", "center", "right", "justify", "char"
    Attribute value generated in uppercase. Any workaround?
    REPORT SORT ARROW
    End tag for "img" omitted, but OMITTAG NO was specified
    Sort arrow &lt;img&gt; element not terminated " /&gt;". Any workaround? (Or can this be suppressed completely/replaced?)

    Hello,
    Most of your issues are things we are aware of and hope to get fixed in 3.0 as they are produced from an engine specifically using htf package to render elements which we will be changing. Unfortunatly with most of those issues I see there I don't think you can do much.
    I doubt the html the engines produce will pass xhtml strict in 3.0 but we will pass xhtml transitional (other than maybe urls in links) with a custom DTD that takes into account things we output in our namespace.
    Carl

  • How to Create a Validation based on a Z table

    I want to create a validation for t-code FB50 so that for any line item that contains a GL Account listed in a table, the validation would then check to see if the field Trading Partner is populated.
    My question is How do I set up the validation so that the values in the table are referenced?  I don't want to have to continually update the valid GL accounts in a set. I want the table to hold the values.  The business users have a custom t-code to update the values in the Z table.
    The Z table contains the field HKONT (GL Account).  The table contains 1 record (it could contain more) with GL Account 123456.
    My attempt was to create a set (Z_TP_ACCTS) that was based on the Z table and the corresponding field.  I then set up my validation to compare the value entered in FB50 (BSEG-HKONT) to look at the set.  My understanding is that the value would be compared to the values in the table, but my tests are failing.  I did not enter any values in the set.
    Any advice / help would be appreciated.

    Hi
    You will have to use an user exit to call up the Z Table to check for your requirement. There are lot of postings on SDN to use an user exit in FI Validations. The standard module pool provided by SAP is RGGBR000 for FI Validations. You can write a form in this.
    Additionally you also have the option of using a BTE for this. The one I can recollect are 00001011 or 00001085
    Thanks & Regards
    Sanil Bhandari

  • SQLCLR "Create Assembly" validation in SQL 2012 vs 2008

    Greetings, all.
    Could someone describe how the assembly validation steps in SQL 2012 have changed relative to SQL 2008R2?
    My understanding thus far is that the .NET 4.0 SQLCLR runtime requirement now precludes the use of mixed-mode assemblies. If a CREATE ASSEMBLY validation failure result includes messages such as the detection of unmanaged pointers, is that indicative of
    the cut-and-dried, no-way-around-it discovery of a mixed-mode assembly that can
    never be registered in SQL 2012?
    I have a third-party assembly which registers and operates normally in SQL 2008R2, but when I try to create the assembly in our SQL 2012 test environment, it fails validation, with mostly "Unexpected type on stack" or "Unmanaged pointer found"
    errors. I'm suspecting these errors are why the assembly won't register even though CORFLAGS indicates it is a "Pure IL" assembly (and I realize CORFLAGS can be faked).
    Are there any options available? The assembly in question is Oracle.DataAccess.dll, and is part of an assembly that (as one might imagine) collects certain data from Oracle in a SQLCLR method as part of one of our business reporting requirements.
    It appears at the moment I may be forced to modify the tool to use the now-deprecated Microsoft Oracle data client, which I am loathe to do for it having been deprecated and much slower than the Oracle-provided version.
    If there is no workaround, I would respectfully suggest that the "upgrade advisor" team include this kind of review when inspecting existing databases containing .NET assemblies. If we ultimately cannot register this particular third-party assembly
    (which has been part of a working component for several years), it will be a *huge* detriment to our database migration - a far cry from the minor warning about certain geography types provided by the upgrade advisor. It would represent a significant breaking
    change for our environment.
    Thanks for any information that could be provided.

    Thanks for your reply. 
    Yes, you are correct in that SQL Server wants to use only "Pure IL" assemblies rather than mixed-mode assemblies. However, when an attempt is made to register an assembly in the SQLCLR that is "mixed mode" (not pure IL), the Verifier respoinds with "Unverifiable
    PE/Native code stub." This is not the error I am receiving with the assembly in question. 
    SQL2012 and SQL2008R2 do not support the same version of the .NET runtime in the SQLCLR subsystem. The former supports 4.0, while the latter supports 2.0 through 3.5. So it is not possible to create a test case with precisely the conditions you specify -
    that is, using the same version of .NET in SQL2012 and SQL2008R2 - unless there is some undocumented startup switch or configuration file modification that can be made of which I am not aware.
    The failure mode I am seeing is specifically tied to the reference of unmanaged
    code references, eg unmanaged pointers. The 2.x assembly registered an working in SQL2008R2 (and its predecessors) contains multiple references to functions with unmanaged pointers, yet registers and works properly when the assembly is CREATED with PERMISSION_SET
    = UNSAFE. I expect the same behavior in SQL 2012 - an assembly with references to things like unmanaged pointers should still verify when PERMISSION_SET = UNSAFE is specified.
    This is why I am questioning whether the semantics of PERMISSION_SET = UNSAFE in conjunction with the CREATE ASSEMBLY statement have changed between SQL2008 and SQL2012. To me, it appears that SQL2008R2 and its predecessors verified assemblies via the internal
    equivalent of a PEVERIFY /MD when PERMISSION_SET = UNSAFE is used, and PEVERIFY /IL when it is not. In SQL2012, it appears that the equivalent of PEVERIFY /IL is done
    regardless of the presence of PERMISSION_SET = UNSAFE. This, to my understanding, is contrary to the whole point of PERMISSION_SET = UNSAFE. 
    PEVERIFY /IL on the previous version of the assembly generates precisely the same kinds of errors generated by the CLR Verifier in SQL2008
    without PERMISSION_SET = UNSAFE. When the latter is specified, the assembly registers and works normally. I contend that the CLR Verifier in SQL2012 is ignoring the PERMISSION_SET = UNSAFE qualifier, and hence my search for more information
    about how the semantics of this command may have changed specifically for SQL2012.
    IF there is an unsupported/undocumented method of allowing the SQLCLR to support both .NET 4.0 and .NET 2.0, I would be very interested in exploring how to leverage it. 
    Thank you for your interest.

  • Creating a complex tabular form manually

    Hi,
    I am trying to create a tabular form manually. The tabular form consists of
    rows , with each row containing
    1. Select List (of employee names)
    2. JOB (Text box)
    3. Salary (text box)
    I have a add button to add a row, a row similar in appearance to the above, i.e it consists of a select list of "employee names", "job" text box and "salary" text box.
    I should to be able to specify the id for these items in each row that I add, I need to specify id for each item in each row that I add since, there is a lov image attached to each row, that would capture any data entered by the user in that row and take him to a popup page with the values specified in the main page.
    Can anyone tell me how to specify id to the items I add (i.e when I create a new row).I also dont find any id created to the items in the form that I have created manually. Please note i am using the APEX_ITEM package to create the tabular form manually.

    Hi Andy,
    I would like to explain what I have done and kindly let me know if this is right.
    I created a tabular multirow form using APEX built in component, since I wanted to add validations and I could not get a handle to UpdateMRU, I decided to create the tabular multirow forms manually using the example on the APEX howtos link.
    I find that the multirow form which i created manually does not have any id associated with the items.
    1. Please let me know if I need to add validations is there only one way i.e to create the multi row tabular form manually?
    2.How do I specify the ids for each item. The APEX_ITEM APIs dont provide any way to add ids to items?
    3.Is it possible to add validations to the multi row form generated using APEX wizard?In the sense , for eg, I have the employee table presented as multi row table, when a user adds a new row or modifies an existing row, he should not be allowed to add an employee with the same name, Now where do I do this valiation and how can I show the error against that row?
    4. What I need to do further is. I have an image on each row (akin to a button) that would spring up a popup page with search options , so that I can repopulate values back into the parent page, to do this I need to pass the ids of the ITEMS to and fro from the parent to the child and back.
    I would like to understand how to approach the above issues.
    Would appreciate if you could let me know on the same.
    Thanks.

  • PayPal Form Post Integration

    Hi Everyone,
    I'm trying to embed a PayPal button in my application using their "Cart Upload" capabilities associated with their [Website Payments Standard|https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_cart_upload] option. It is all done through an HTML form like the following:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_cart">
      <input type="hidden" name="upload" value="1">
      <input type="hidden" name="business" value="[email protected]">
      <input type="hidden" name="item_name_1" value="Item Name 1">
      <input type="hidden" name="item_number_1" value="ITM1">
      <input type="hidden" name="amount_1" value="1.00">
      <input type="hidden" name="item_name_2" value="Item Name 2">
      <input type="hidden" name="item_number_2" value="ITM2">
      <input type="hidden" name="amount_2" value="2.00">
      <input type="hidden" name="no_shipping" value="1">
      <input type="submit" value="PayPal">
    </form> The problem is, every APEX page is already bound by a form, so you can't embed this form into any page. I've seen the 2007 Whitepaper about integrating PayPal using UTL_HTTP, but that is way more work than using the above code. Anyone know how I can include this in a page without it conflicting with the APEX form?

    jritschel wrote:
    The problem is, every APEX page is already bound by a form, so you can't embed this form into any page. I've seen the 2007 Whitepaper about integrating PayPal using UTL_HTTP, but that is way more work than using the above code. Anyone know how I can include this in a page without it conflicting with the APEX form?Locate it on the page outside of the APEX form. Create a page template with a region position or item substitution string outside of <tt>#FORM_OPEN#...#FORM_CLOSE#</tt> and generate the PayPal form code in that region or item.

  • JSF autocomplete - fails XHTML validation

    My JSF pages (mojarra 2.0.1) generate a hidden state holder with an autocomplete="off"' property as part of the </h:form> closing tag:
    <input type="hidden"
    name="javax.faces.ViewState"
    id="javax.faces.ViewState"
    value="-1715251979060474851:6281790946545926031"
    autocomplete="off" />
    </form>The autocomplete property is not valid XHTML so it does not validate under XHTML 1.0 Transitional, or any other common XHTML DTD as far as I can tell (see: [http://validator.w3.org/]).
    I'd like to validate under XHTML 1.0 Transitional. Has anyone got a good fix for this?

    The autocomplete was added as a fix, so you do not want to disable this. See: [Issue 1129|https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1129]
    There are a couple of ways to pass validation.
    *1) add ATTLIST to doctype - does not work*
    I found a way to pass XHTML validation as suggested by: [https://wiki.mozilla.org/The_autocomplete_attribute_and_web_documents_using_XHTML]
    Its a little bit it of a cheat really, but I add *[<!ATTLIST input autocomplete CDATA #IMPLIED>]* into my doctype and it will pass the W3C XHTML validator:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
       [<!ATTLIST input autocomplete CDATA #IMPLIED>]>This method passes validation, but this leaves your HTML with a "]>" at the start of the page, so is not usable
    *2) Custom DTD*
    The other way is to download the DTD from W3C, modify it and use your own custom DTD.
    Also a cheat but gets you through the W3C tests.
    Edited by: zsaurnni on Dec 7, 2009 10:24 PM

  • I switched my account from PayPal to a credit card but they keep declining my purchase and telling me I don't have a valid PayPal account

    I switched my payment account from PayPal to a credit card for I tunes purchases but they keep declining me stating that I don't have a valid PayPal account I have contacted customer service three times and it is like we are talking two different languages

    I have been having this issue too since yesterday.  I downloaded two songs fine (my itunes account was associated to paypal) then I went to download an album and it said paypal is not supported on this device.  So, I went out onto itunes via my computer and put my credit card (it is valid in my country, it is a visa, it is not a debit card) and it still isn't working.  It still says on my iphone that paypal cannot be used on this device.  I don't understand this since I switched it online from paypal to a credit card.  Please do not post the "accepted form of payment" link again, I see that (have seen it as a response to many requests like this actually which isn't helping.) I actually want to purchase some things...you would think Apple would do its best to help me to do that!

  • Does WebLogic's generated HTML pass W3C HTML/xHTML validation?

    A client needs to use WebLogic AND make sure that the final code is valid HTML
    4.01 or XHTML 1.0 transitional code. What tools exist in the IDE to insure that
    syntactically correct client code is generated?

    Yes, there is a W3C utility, but can only be used "after the fact", after the finished
    web page has been generated and sent on to the browser. Is there a way from within
    the BEA environment to insure that code created is valid HTML/XHTML?
    "Mark Griffith" <[email protected]> wrote:
    I am pretty sure there is nothing in the IDE to check this. Doesnt WC3
    have
    a utility to do this for you?
    cheers
    mbg
    "Chris Spurgeon" <[email protected]> wrote in message
    news:[email protected]..
    A client needs to use WebLogic AND make sure that the final code isvalid
    HTML
    4.01 or XHTML 1.0 transitional code. What tools exist in the IDE toinsure that
    syntactically correct client code is generated?

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Creating a modern Contact Form in Dreamweaver or use an addon

    Hi
    I am looking for an easy way to create a modern contact form in Dreamweaver using and addon also will be fine
    Any ideas?
    I wan to create fields:
    Email:
    Drop down: with 3 options
    Simple text box
    Notes:
    Submit button
    Thanks

    Making HTML5 Forms in DW CC (video)
    http://tv.adobe.com/watch/learn-dreamweaver-cc/html5-forms-workflow/
    Making the HTML form is easy but the form processing script which collects data & sends it to your email is not quite so simple.   Start with your web host.  Ask them if they have form-to-email processing scripts you can use.  If they don't, find out which scripts your hosting plan supports (php, asp, asp.net, perl, coldfusion, etc...)
    Nancy O.

  • Unable to create a report painter form (Message no. KH205).

    Dear all,
    I am trying to create a report painter form, but the system gives an error:
    Key figure scheme  contains errors -> check definition
    Message no. KH205
    Diagnosis
    Entry   not contained in Table T237A.
    Procedure
    Check key figure scheme  (in particular line 9062) in table T237A.
    I checked in Tcode KER1 but did not find any Key figure scheme.
    Afterwards, I checked table T237A and T237 and found out that number of hits in table 237A is less than in T237A.
    I think this is the reason why system has such reaction.
    Please help me with this issue.
    Best regards,
    Linh.
    Edited by: tvlinh on Mar 7, 2012 11:22 AM
    Edited by: tvlinh on Mar 7, 2012 11:22 AM

    Hi,
    This issue can occur if you have transported the Key Figure Scheme (KFS) from another system and /or deleted value fields. Has this happened ?
    To fix the issue you need to renumber the T237 in the source client executing the function module RKE_FILL_TABLES_T237FF as mentioned in the note 13838.
    After this try to create a new form and check if that works. If there are still problems with the existing form/report then the best
    way might be to delete and create again
    regards
    Waman

  • Creating a Folder Within Form or Document Library & Display the name not in the name column.

    I have created a form library that will used to create folders within that. The folder creation is done using an InfoPath Form that has been uploaded to the Form Library. When the new folder was created the name will be displayed at the Name column within
    the Form Library. I want to change that to another column like documents or suchlike.
    Can it be done using InfoPath 2010 VSTA C# or not? If their are other options available please could you try to inform me!
    Thank You,
    Chiranthaka

    Hi,     
    If you want to show the name of folder in another column, a workaround is that you can create an extra column, then create a SharePoint Designer workflow to set the value of
    this column with the name of folder.
    Here is a link about Create Workflow using SharePoint Designer and set field value for your reference:
    http://www.codeproject.com/Tips/419037/Create-Workflow-using-SharePoint-Designer
    I have seen a similar post from you in the link below:
    http://social.technet.microsoft.com/Forums/en-US/c3ff3f17-dbe2-40f9-86c5-ff7d4b663f09/creating-a-folder-within-form-or-document-library-display-the-name-not-in-the-name-column?forum=sharepointcustomizationprevious
    It's recommended that you post a single question in a single thread which will make it easier to be discussed by others.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Can I create a fillable pdf form and then export it for client use on my web site?

    Can I create a fillable pdf form and then export it for client use on my web site?  I need clients to be able to fill in the (registration) form on my site then submit it via email.

    [discussion moved to Creating, Editing & Exporting PDFs forum]

Maybe you are looking for