[TYPO3-english] RealURL and forms

Sergey Alexandrov serg at alexandrov.us
Sun Oct 23 19:28:31 CEST 2011


Guys,

Seriously guys, I believe, I'm missing something with RealURL setup, 
created config for quick_shop, tx_calendar, wt_cart and some other 
extensions the way I want, but still having really huge problem
with ANY form when RealURL enabled.

Condition: have 2 pages:
     'Form itself' (id=1146)
         'Thank you' (id=1147)

1. Without RealURL form's main stuff:

     form action="index.php?id=1147"  onSubmit="return 
validateForm('mailform','','','','')"
     input type="hidden" name="locationData" value="1146:tt_content:72"

     correctly submits data to class.t3lib_formmail.php, then redirect 
to id=1147 ('Thank you' page)

2. Enabled RealURL (default autoconfig, added 'fileName' option only, 
but the same w/o it), Cleared cache, reloaded form:

     form action="payform/thank-you.html"  onSubmit="return 
validateForm('mailform','','','','')"
     input type="hidden" name="locationData" value="1146:tt_content:72"

     page http://domain.tld/payform/thank-you.html directly accessible, 
no problem

     After form submit visitor redirected directly to the 
payform/thank-you.html page, not sending form data to 
class.t3lib_formmail.php first

3. Disabled caching of the payform.html page. Page's URL: 
http://domain.tld/nc/payform.html - the same behavior :(

4. Additional info, maybe here's some stuff hides

Web->info on the payform page:
Decode cache:
     PayForm 1146 nc/payform.html ?id=1146&no_cache=1
         Thank you 1147 payform/thank-you.html ?id=1147

Encode cache:
     Payform - all fields are ampty
     Thank you 1147 _DEFAULT | id=1147 payform/thank-you.html

The same behavior with any form, for example, Quick shop's 'add to cart' 
button directly goes to the shopping cart w/o any data submission to the 
script,
therefore nothing added to the cart at all.

5. Tried combinations:
    config.baseURL=http://domain.tld/

    and
    config.absRefPrefix = /
    config.baseURL=http://domain.tld
    config.prefixLocalAnchors = all

Nothing helped :(

Anybody experienced similar  behavior? Please help ;)

Thank you in advance,
Sergey



More information about the TYPO3-english mailing list