Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 796
MTO
Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Even though I was logged out, my language cookie was set for Spanish. It seems it is currently impossible under Beta 4 to get the system to email you the password if language is not English.

When I clicked on it to send my password, it always said I had a missing field. I am guessing that for some weird reason, the submit button text must have to do with it, as I cant find any difference in the form with the English one:
code:

[:"red"] English working form: [/]
[:"blue"] <form method="post" action="https://ubbdev.com/threads/php/start_page.php">
<input type="hidden" name="Cat" value="" />
Username<br />
<input type="text" name =" Loginname" class="formboxes" />
<br />
<br />
Email<br />
<input type="text" name="Email" class="formboxes" />
<br />
<br />
<input type="submit" name="option" value="I forgot my password" class="buttons" />
</form> [/]

[:"red"] Spanish, non working form: [/]
[:"blue"]<form method="post" action="https://ubbdev.com/threads/php/start_page.php">
<input type="hidden" name="Cat" value="" />
Nombre de miembro<br />
<input type="text" name =" Loginname" class="formboxes" />
<br />
<br />
Correo Electrónico<br />
<input type="text" name="Email" class="formboxes" />
<br />
<br />
<input type="submit" name="option"
value="[:"purple"] Se me ha olvidado mi contraseña [/] " class="buttons" />
</form>[/]


As you can see, asides from the submit button, the input fields are the same.

Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
My guess is that it is the value for the submit button:

Se me ha olvidado mi contraseña

That special character ñ can wreak havoc on form buttons as it doesn't come across properly to match on the backend.


UBB.threads Developer
Joined: Jan 2000
Posts: 796
MTO
Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
I guess we could have it changed to plain "ñ", but I have never had ñ affect a form before.

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
It doesn't affect how the form actually works, but the problem is that ñ get's converted and then it tries to match that to the string on the backend script to see what button you clicked. But, because it got converted into the actual character it doesn't match. Hopefully that makes sense.


UBB.threads Developer
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
In a situation where I had lots of forms and submit buttons, I took the approach of using the name attribute, rather than the value attribute, to identify the submit button to the form handler.

For example:

code:
<input type="submit" name="action_browse_first" value="Browse First Page" />
<input type="submit" name="action_browse_last" value="Browse Last Page" />
<input type="submit" name="action_edit_372" value="Perform Edit" />



The handler parses the "action_xxxx" to determine what to do. The "value" attributes are used only for the displayed text, and ignored by the handler.

Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Yes, I'm probably going to have to switch to that for a future release since the current way causes some problems under various languages.


UBB.threads Developer
Joined: Jan 2000
Posts: 796
MTO
Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Rick, any chances you will add [:"green"] value="..." [/] tags to the form/s in v.6? I am reviewing all the Spanish language files, and I´d like to know if its worth trying to find diferent words and ways of expressing to say what needs to be said or they can be left as is (being that it will be fixed).

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
This probably won't get in until 6.1. Really want to get the stable version done and out for everyone, so don't want to make any more changes at this point.


UBB.threads Developer
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
In reply to:

Yes, I'm probably going to have to switch to that for a future release since the current way causes some problems under various languages.




I'm currently working on that, cause the german language has special characters aswell. Isn't very complicated. I'm looking forward to finish it in the next days.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)