1
spankee
user registration -- prefilled text box
  • 2006/5/25 8:07

  • spankee

  • Just popping in

  • Posts: 89

  • Since: 2005/11/13


I added a new form to the registration page called "reason for registration". I would like to have the form filled in with usefull text (instructions) and also make it required for registration.
The problem ...I would like this form to be mandatory for registration but if I have the prefilled text in the form then XOOPS treats it like it was filled in by the user--the user does not need to fill in anything.

Here is the line I am using in xoops/include/registerform.php
$reg_form->addElement(new XoopsFormTextarea(_US_whyregast"user_whyreg""Hello"550$myts->htmlSpecialChars($user_whyreg)), true);


Is there a way around this or do just need to leave out the "Hello"?

Peace

2
davidthomas1
Re: user registration -- prefilled text box

You either have to either:
1)Leave out the default value or
2)Write some javascript to check the text area value is different from the default value when the user submits the form.
みんなちがってみんないい。

XOOPS 2.0.13.2

3
davidthomas1
Re: user registration -- prefilled text box

You either have to either:
1)Leave out the default value or
2)Write some javascript to check the text area value is different from the default value when the user submits the form.
みんなちがってみんないい。

XOOPS 2.0.13.2

4
spankee
Re: user registration -- prefilled text box
  • 2006/5/26 5:54

  • spankee

  • Just popping in

  • Posts: 89

  • Since: 2005/11/13


Thanks for replying
Javascript you say...anybody want to help me out on that?

Login

Who's Online

181 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits