;

PDA

Click to See Complete Forum and Search --> : get image in flash page thru db


xsgraphix
01-03-2003, 03:31 AM
hi guyz right now i am working on a form which looks like this but still it isnt working i'll explain all what i have done:
\1) Movieclip - Guestbook

2) 3 frames - Frame 1) Form, Frame 2) Thank You, Frame 3) View List

IN Frame 1) Name Email Website Comments and Status Are the text boxes Used and Reset and Submit Buttons

ON Submit Button this is the Script:
on (release) {
if (Name eq "") {
_root.guestform.Status = "Please Enter Your Name";
} else if (Email eq "") {
_root.guestform.Status = "Please Enter Your Email Address";
} else if (Website eq "") {
_root.guestform.Status = "Please Enter Your Website Address";
} else {
Submit = "Yes";
NumLow = "0";
NumHigh = "10";
_root.guestform.GuestBook = "Processing ... Loading New ...";
loadVariablesNum ("GuestBook.php", 0, "POST");
_root.guestform.Status = " Your Entry Has Been Submitted ";
_root.guestform.ThankYou = " Your details are submitted , Thank You ";
gotoAndStop (2);
}
}
//Frame 2) Thank You Text with BACK AND VIEW LIST Buttons

//Frame 3) GuestBook Text Field,,NumLow,,NumHigh,,nd Total Entries,,and Previous ,,Next,,Back to Form Buttons..

on Frame 3) i ahave actions:

NumLow = 0;
NumHigh = 10;
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 0);
stop ();

on previous button :
on (release) {
if (NumLow == "0") {
GuestBook = "No More Before 0";
} else {
NumLow = Number(NumLow)-Number(10);
NumHigh = Number(NumHigh)-Number(10);
GuestBook = "Loading Comments Numbered "+NumLow+" to "+NumHigh+" Please Hold";
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 0);
}
}


and on next button
on (release) {
NumLow = Number(NumLow)+Number(10);
NumHigh = Number(NumHigh)+Number(10);
GuestBook = "Loading Comments Numbered "+NumLow+" to "+NumHigh+" Please Hold";
loadVariablesNum ("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 0);
}

thats it i dont understand why its not working could any tel this and also i want to upload a image from the flash page to the database anybody could tell abt this
thank you

Musicman
01-03-2003, 04:44 AM
Hi,

you are loading data into the root with loadvariablesNum and using them in a guestbook movie clip - does your php know about this?

Musicman

xsgraphix
01-03-2003, 06:00 AM
hi musicman i dont know much about php i just got that what i wrote if any mistake is there plzz let me know i dont know whether there would be any problem in placing GuestBook textfield inside the movieclip as it has to cal the text from there itself and place relevantly but still u tell me what am i suppossed to do

Musicman
01-03-2003, 01:12 PM
Hi,

it is more a problem of matching two systems:
if the php script outputs like
textboxname=xyz
and you use textbox in movieclip and loadvariablesnum, it will not work. Your options are to change the php to output _root.guestform.textboxname=xyz
instead or change the flash to use
_root.guestform.loadvariables('url', 'POST')
to make them fit together ... whichever you feel more comfortable to change.

Musicman