This topic is locked
[SOLVED]

 Auto add after registration page

9/7/2008 11:36:46 AM
PHPRunner General questions
D
djsmithuk author

Hiya
I am a bit stuck and have tried everything
have created a database with PHPRunner
My add page will be the Registration page.
on submit i need feilds that are not shown to the user to be automaticaly filled in
for example
data user fills in and adds
Username

Password

E-mail
Data I dont want user to see

IP address

Date Registered

Level (default = 1)

etc etc
is there a way i can do this using PHPrunner, even if the feilds are hidden to the user and are automaticaly filled in using default values
please help

S
steve007 9/7/2008

Here's one way I think you could do it. You know the section on phprunner where you have to tick boxes (the section where you choose what get searched for,edit,view,import etc..) untick the boxes that you don't want to be displayed. Now I'm no expert but that's all I do when I have your problem.
So for example: untick ip address and that shouldn't be displayed, date registered etc ....

D
djsmithuk author 9/7/2008

Hiya mate
yes i have tried that, but my problem is that once the user registers i need to add defult values to hidden feilds
so i need them to be in the array when the user clicks on submit
i have found a way round this and this is to go to the editor and edit the HTML code
<TD class=editshade_b style="DISPLAY: none" width=150>test</TD>

<TD class=editshade_lb style="DISPLAY: none" width=250>{build_edit_control field="test" mode="add" value=$value_test}&nbsp;</TD></TR>
Noteing that where it says style = i changed this to "DISPLAY: none"
now my feilds are hidden.
I have come accross another problem though
when i click on the build button, the HTML changes do not change the html file in question :-(

but shows in phprunner that the changes have taken affect

J
Jane 9/8/2008

Hi,
use Before Register event on the Events tab to fill another fields.

Here is a sample:

$userdata["Field1"] = "new value1";

D
djsmithuk author 2/26/2009

Hi,

use Before Register event on the Events tab to fill another fields.

Here is a sample:


thanx Jane, this works perfectly
will save me time having to update pages manualy everytime i want to add something else to the web-site