Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
php + Flash mail form

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 29.06.2005 12:11    Post subject: php + Flash mail form Add user to your forum ignore list Reply with quote

Imam primjer forme u flashu koji šalje varijable na php skriptu POST metodom. Problem je što bih želio i validaciju unosa polja ali mi onda to sve skupa ne radi?

+++evo as coda+++
//u prvom frameu imam stop, a zatim..//

//drugi frame, kod za submit button//
on( release ){
if ((name eq "") or (email eq "") or (message eq "")) {
gotoAndStop(2)
} else {
loadVariablesNum("contact.php", 0, "POST")
gotoAndPlay(3);
}
}

++++++++++++++++++++++++++
Ima li netko neki drugi primjer? Ako može i pripadajuća php skripta... Smile

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 29.06.2005 12:29    Post subject: Add user to your forum ignore list Reply with quote


_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
xxx



Joined: 29 Jun 2005
Posts: 5

PostPosted: 29.06.2005 16:12    Post subject: Add user to your forum ignore list Reply with quote

I meni treba identična stvar!!!

Embarassed

Bit ću iznimno zahvalna ako netko posta rješenje.

Stvarno mi to treba jer su rokovi za vratom Sad
Back to top
View user's profile Send private message
luksy



Joined: 28 Oct 2003
Posts: 440
Location: zaprešić, croatia/brežice, ljubljana, slovenia

PostPosted: 29.06.2005 16:18    Post subject: Add user to your forum ignore list Reply with quote

http://www.kirupa.com/developer/actionscript/flash_php_email.htm
Back to top
View user's profile Send private message Visit poster's website
scip



Joined: 19 May 2005
Posts: 25
Location: osijek

PostPosted: 29.06.2005 17:14    Post subject: Add user to your forum ignore list Reply with quote

sve dok ti ništa nije uneseno u input text on je "null" ... treba biti npr. name==null ...
varijabla bi bila eq "" tek kad bi nesto bilo uneseno pa obrisano .... probaj tako

_________________
Let Your Bookmarks Define You ..
Back to top
View user's profile Send private message
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 30.06.2005 11:11    Post subject: Add user to your forum ignore list Reply with quote

luksy wrote:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm


Da vidio sam već taj tutorial, ali on nema validaciju polja. U svakom slučaju Hvala Wink

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 30.06.2005 11:13    Post subject: Add user to your forum ignore list Reply with quote

scip wrote:
sve dok ti ništa nije uneseno u input text on je "null" ... treba biti npr. name==null ...
varijabla bi bila eq "" tek kad bi nesto bilo uneseno pa obrisano .... probaj tako


znači:
on( release ){
if ((name ==null) or (email ==null) or (message ==null)) {
gotoAndStop(2)
} else {
loadVariablesNum("contact.php", 0, "POST")
gotoAndPlay(3);
}
}

hmmm... vrijedi probati.
Puno hvala Very Happy

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
unique



Joined: 29 Mar 2004
Posts: 655

PostPosted: 30.06.2005 12:03    Post subject: Add user to your forum ignore list Reply with quote

ako scip ima pravo onda trebaš stavit svejedno ovak...

a==null || a=="" ;)

eq bas izgleda bezvz :)

_________________
Activate interlock! Dynotherms connected! Infracells up! Mega thrusters are go! LET'S GO VOLTRON FORCE!
Back to top
View user's profile Send private message
xxx



Joined: 29 Jun 2005
Posts: 5

PostPosted: 30.06.2005 13:28    Post subject: Add user to your forum ignore list Reply with quote

glede ... a==null || a==""

Ja malo tupava pa mi treba opet pomoć

Debugger izbacuje da je "||" not expected ... grrr Evil or Very Mad
..Nikad ja to neću naučit Embarassed
Back to top
View user's profile Send private message
Chaby



Joined: 19 Oct 2003
Posts: 132
Location: VG/ Kurilovec

PostPosted: 30.06.2005 14:35    Post subject: Add user to your forum ignore list Reply with quote

unique je vjerojatno mislio na php, u php-u je || logičko ili, dok je u action scriptu, kol'ko sam skužio or?

edit: ne znam ja kak to ide s flashom, al' kaj nije jednostavnije provjerit formu na samoj stranici di je proces? Pa ga vratit ak' nije dobro.
Back to top
View user's profile Send private message
unique



Joined: 29 Mar 2004
Posts: 655

PostPosted: 30.06.2005 15:52    Post subject: Add user to your forum ignore list Reply with quote

hehe nisam ni skuzio da se radi o flashu (to je kad povrsno citam :)
pa ak ne radi || onda ce bi trebalo radit 'or' kao sto je chaby rekao...

_________________
Activate interlock! Dynotherms connected! Infracells up! Mega thrusters are go! LET'S GO VOLTRON FORCE!
Back to top
View user's profile Send private message
Danko



Joined: 16 Sep 2004
Posts: 124
Location: Zagreb

PostPosted: 02.07.2005 22:09    Post subject: Add user to your forum ignore list Reply with quote

Kod validacije probaj sa "undefined", ne sa "null". To je tak u Flashu...

Imas ovdje vise o Flash/PHP formi: http://www.mi3dot.org/forum/viewtopic.php?t=4244

_________________
dankokozar.com | Adjungo | UnityHR | eDriven
Back to top
View user's profile Send private message Visit poster's website
scip



Joined: 19 May 2005
Posts: 25
Location: osijek

PostPosted: 04.07.2005 10:58    Post subject: Add user to your forum ignore list Reply with quote

u ovom je slučaju tako svedno jel se koristi null ili undefined ... ponašaju se isto ...
To je tak u Flashu...

_________________
Let Your Bookmarks Define You ..
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group