Gossamer Forum
Home : Products : DBMan : Customization :

Using dbman with flash

Quote Reply
Using dbman with flash
My dbman works alright but how can i use it with my flash form to send variables to database and store them there and on my login page I would be able to call those variables such as username and password? and by loading those variablem, Enter the site.

any one got any idea?

George
Quote Reply
Re: Using dbman with flash In reply to
What is a flash form?

------------------
JPD






Quote Reply
Re: Using dbman with flash In reply to
Macromedia Flash Animation....I created my form in Flash format.

http://www.buforiclub.com/regform2.html

have look....if you are not familiarwith this I would be appriciate if you explain how I can make the same process in HTML format with dbman, I mean after processing form users would be able to enter their username and password on my site login page and enter the site
Quote Reply
Re: Using dbman with flash In reply to
Well, DBMan won't make anything as flashy as that, I don't think. I can't even look at the source code for your form, so I wouldn't know how to adapt it to DBMan.

However, you can have the same functionality that you want.

Pick up the mod at http://www.jpdeni.com/...OneUserOneRecord.txt . You want option 4.


------------------
JPD






Quote Reply
Re: Using dbman with flash In reply to
I checked the address you specified but I dont understand when it says "copy and paste the sub_html_record and paste below it" shall I do that in html.pl file or on db.cgi file???
Quote Reply
Re: Using dbman with flash In reply to
In html.pl. Where sub html_record is. Right below it. In the same file.



------------------
JPD






Quote Reply
Re: Using dbman with flash In reply to
Dear JPD

How I can send variables from form to the database ?
Quote Reply
Re: Using dbman with flash In reply to
There are some tutorials on how to send into to CGI through Flash forms on the Were-here.com website.

Just do a search for "form" or something like that in the search form on the main page (top left). I got 3 results just from that search. Also, go through the tutorials page and even the forum. I've learned a lot of flash stuff from their site.


------------------
Jason
Extreme mtb
http://extreme.nas.net
Quote Reply
Re: Using dbman with flash In reply to
From the form that's in the mod? Or from your flash form?

The form that is within DBMan is all set up to send the variables. You don't have to do anything to send the variables to the database.

If you want to use your flash form, you'll need to work on whatever the

<form action="

thing is in flash forms. Since I was unable to view the source of the form, I don't have any idea.


------------------
JPD






Quote Reply
Re: Using dbman with flash In reply to
well...I cant find any form in dbman to send variables to dbman database, the only thing i can get is the logon page by going to
http://www.buforiclub.com/cgi-bin/dbman/db.cgi

is there any default form in dbman that we enter variables in? if yes how is it accessible?
Sorry.....but I am really confused
Quote Reply
Re: Using dbman with flash In reply to
The forms in DBMan are created by a combination of subroutines, mostly in the html.pl file.

Take a look at sub html_add_form. You will see the beginning of a form:

Code:
<form action="$db_script_url" method="POST">
<input type=hidden name="db" value="$db_setup">
<input type=hidden name="uid" value="$db_uid">

and the end of a form

Code:
<INPUT TYPE="SUBMIT" NAME="add_record" VALUE="Add Record">
<INPUT TYPE="RESET" VALUE="Reset Form"></center></p>

</form>

The middle of the form is taken care of by the line

Code:
&html_record_form (&get_defaults);

To find out what's in there, go to sub html_record_form.

You'll see a series on input fields in a table, each one with a name that matches a database field from the .cfg file.

If you have altered the .cfg file to include the fields you want, but have not yet edited the html.pl file, you can still see the forms that apply to your database by setting

$db_auto_generate = 1;

in the .cfg file. Then run DBMan, go to the add form and take a look at the source code for your browser. You'll get all the info you need for how to build a form on an outside page.



------------------
JPD






Quote Reply
Re: Using dbman with flash In reply to
Hi,
I have done this before - a little bit tricky but it works.
Please give the path to the fla file and I modify it for you.
Quote Reply
Re: Using dbman with flash In reply to
Dear Niemann,

It would be so kind of you if you do this for me as it has been almost 3 weeks i've been working on it but no luck at all. If there is anyway i can repay your favour please let me know. The paths are;

http://www.buforiclub.com/regform.fla
http://www.buforiclub.com/c-login.fla

First path is the registration form and second is login page.

Once again thank you for your great favour

Quote Reply
Re: Using dbman with flash In reply to
Hi George,

Well, as I said it is tricky :-).
I tried to download the files but they wasn't working. Please send me the files as a ziped e-mail and I will see what I can do today.
To: computer-solution@t-online.de