1
tigums
Getting a user's resolution at registration
  • 2004/6/6 22:14

  • tigums

  • Just popping in

  • Posts: 8

  • Since: 2004/5/30


At this time I have my registration setup such that they can enter their resolution manually and it will input that into my altered xoops_users table.

However, I would like to automate the process of getting thier resolution at registration. Javascript provides screen.width and screen.height, I don't know if there is a way to pass those javascript variables into the pphp code though.

I followed this guide to hack the registration, http://claude.felix.chez.tiscali.fr/tuto/hack_form_inscr_bil.htm, and that set everything up for people to be able to enter their resolution.



In class/xoopsform/themeform.php the form is 'rendered',so I added
<script language="Javascript">document.write('hidden' name='resolution' id='resolution' value="'+screen.width+'x'+screen.height'" />');script>


before the in there. I thought that would work.. but it didn't.

Does anyone have any insight on doing something like this?

Login

Who's Online

179 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

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

Latest GitHub Commits