Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 12:24 pm (All times are UTC )

 




Post new topic Reply to topic  [ 4 posts ] 
Author Message
Posted: Sun Apr 30, 2006 6:36 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Apr 30, 2006 6:01 pm
Posts: 4
Hello,

Is it somehow possible to use parameters from the url and enter them to the registration form?
For example, I have this url:
Code:
http://www.domain.tld/index.php?option=com_registration&task=register&name=john

Can I somehow put "john" into the "Your name:" input array?

Thanks for responses!


Top
   
 
Posted: Sun Apr 30, 2006 8:54 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
look for the JRequest::getVar() function

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Posted: Mon May 01, 2006 6:25 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Apr 30, 2006 6:01 pm
Posts: 4
Thanks for help Hackwar.

I put this into the code:
Code:
$name = JRequest::getVar( 'name', '', 'cbreceipt', 'STRING');


But when I try to load it, it gives me fatal error:
Code:
Fatal error: Undefined class name 'jrequest' in /srv1/www/wmspeak.com/subdomains/www/components/com_registration/registration.php on line 103


It looks like I have to include some library, but I cannot find which one. I was searching through this website and found Hello World example here: http://dev.joomla.org/index.php?option= ... ello_world . There is also used JRequest, but they do not use any special library. Can please anyone help me how to put it to work?


Top
   
 
Posted: Mon May 01, 2006 9:50 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3652
Location: NRW - Germany
which version of Joomla are you using? You are posting in the 1.5 board. The function JRequest::getVar is only available from 1.5 onwards. If you are working with a 1.0.x version, you will have to look for the function mosgetparam.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: brendon_101, Crissipos, e6s4life, gungar, mazeem, mirnes, ooffick and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group