[ic] inserting into userdb table through a form

Stefan Hornburg Racke interchange-users@icdevgroup.org
Fri Jul 12 09:09:01 2002


Brent Kelly <brent@zeald.com> writes:

> Hey all,
> 
> I'm trying to modify the 'new account' page so that the user must specify 
> their name, company, and misc other details at the same time to create a new 
> account. Now i've tried this a number of ways and read all the docs i can get 
> my hands on (the written manuals, and on the web) but still can't figure how 
> to get this going.
> 
> According to an example in the written manuals (IC 4.8 Development Guide - 
> p.248) the following code should be able to insert into a table on submit:
> 
> <FORM ACTION="[process secure=1]" METHOD="POST" name="account">
> [set mv_data_enable]1[/set]
> <INPUT TYPE="hidden" NAME="mv_session_id" VALUE="[data session id]">
> <INPUT TYPE="hidden" NAME="mv_data_table" VALUE="userdb">
> <INPUT TYPE="hidden" NAME="mv_data_key" VALUE="username">
> <INPUT TYPE="hidden" NAME="mv_data_function" VALUE="insert">
> <INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="login">
> <INPUT TYPE="hidden" NAME="mv_data_fields" 
> VALUE="title,username,password,company,fname,lname,address1,address2,city,state,zip,country,email,phone_day,visitor">
> 
> ..... and then all of the form input variables for each field as specified in 
> mv_data_fields (e.g. <input type="text" name="company" value="">).
> 
> now i know theres prolly something obvious that i'm missing but the above code 
> still doesn't insert a row on submit. What i'm trying to achieve is basically 
> the standard new account page, just with the added fields.
> 
> Could someone please point me in the right direction, or in the direction of 
> some docs that would.

Any messages in the catalog error.log ?

Ciao
        Racke

-- 
Prolific Interchange Consulting (Excellent German Quality !).
Take a look at Materialboerse (http://www.materialboerse.de/), WITT 
(http://www.witt-weiden.de/), Boxmover (http://shop.boxmover.ch/) or 
Passionshop (http://www.passionshop.com/racke). Need a shop ? Contact us.