Passing data to registration page in G2.3.1

mikeb816

Joined: 2010-04-24
Posts: 4
Posted: Mon, 2010-05-31 19:20

First, Happy Memorial Day to all....

I have one last issue I can't figure out before I take my site live. I'm trying to pass the necessary info to the Registration page in G2.3.1 to add a new user without them having to re-enter the data after they've already signed up on my site. I do the exact same thing with the login page that works just fine for existing users, but for some reason, what gets entered into the form on the registration page are the variable names rather than the contents of the variables. Here is a short PHP page I made up to test what I want to do:

<?php

$first = "Billy ";
$last = "Bob";
$email = "BillyBob@email.com";
$pw = "12345";
$username = "LetMeIn";
$name = $first.$last;

echo $first;
echo $last;
echo $email;
echo $name;
echo $pw;
echo $username;

?>
<html>

<head>
<title>Registration Page</title>
</head>

<body>
<div style="width:500px; margin-left:auto; margin-right:auto; text-align:center">

<a href="http://www.MySite.com/galleries/main.php?g2_view=core.UserAdmin&amp;g2_subView=reg ister.UserSelfRegistration&amp;g2_form[formName]=UserSelfRegistration&amp;g2_form[action][create]=Register&amp;g2_form[userName]=$username&amp;g2_form[fullName]=$name&amp;g2_form[email]=$email&amp;g2_form[password1]=$pw&amp;g2_form[password2]=$pw" title="Register Now"> Register Now </a>

</div>
</body>

</html>

Any and all help is greatly appreciated!

Mike

Gallery URL = http://www.FakeName.com/galleries/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.13 cgi-fcgi
Webserver = Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.1.30, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, ImageMagick, jpegtran, LinkItemToolkit, SquareThumb, Thumbnail
Acceleration = none/0, full/900
Operating system = Linux gator472.hostgator.com 2.6.33.1 #6 SMP PREEMPT Tue Mar 23 23:09:34 CDT 2010 i686
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 23
Rows in GalleryAccessSubscriberMap table = 1141
Rows in GalleryUser table = 3
Rows in GalleryItem table = 1120
Rows in GalleryAlbumItem table = 48
Rows in GalleryCacheMap table = 38