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 email problemi

 
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
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 10.05.2004 22:01    Post subject: php email problemi Add user to your forum ignore list Reply with quote

imam polje za unos emaila i button..

submitas email i skripta provjeri nalazi li se taj email u bazi...


$EMAIL = $_POST['email'];
$Nesto = mysql_num_rows(mysql_query("SELECT * FROM majkl_dzeksn WHERE email LIKE '$EMAIL'"));


to radi ako upises email i kliknes misom na button.. a ne radi ako upises email i lupis enter...

zasto???????
Back to top
View user's profile Send private message MSN Messenger
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 11.05.2004 00:21    Post subject: Add user to your forum ignore list Reply with quote

kak ti zgleda forma?

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.05.2004 01:03    Post subject: Add user to your forum ignore list Reply with quote

<form name="recovery" method="post" action="?s=888">
Email<br>
<input type="text" size="40" name="email" maxlength="50">
<br><br><br>
<input type="submit" name="Submit" value="Submit"
</form>


radi i kad upisem email, kliknem negdje izvan texboxa i onda lupim enter...
Back to top
View user's profile Send private message MSN Messenger
blackduke
mi3.crew


Joined: 08 Sep 2003
Posts: 2681
Location: Zagreb

PostPosted: 11.05.2004 01:32    Post subject: Add user to your forum ignore list Reply with quote

editirao sam naslov tako da kada ce ljudi traziti rjesenje slicnog problema da im olaksamo posao.

poz
Back to top
View user's profile Send private message Visit poster's website Twitter profile
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 11.05.2004 08:30    Post subject: Add user to your forum ignore list Reply with quote

Ziher ti je kriva provjera da li se desio submit. Jer kad stisnes enter, Submit gumb se ne "posalje", jer nije "kliknut". Odnosno, varijabla $_POST['Submit'] ne postoji.

A ovako odokativno, ti mozda provjeravas sljedece:
Code:

if ($_POST['Submit']) {
    // blabla
}


Dodaj u formu hidden polje:
Code:
<input type="hidden" name="Submit" value="Submit">

ili provjeru da li se desio submit forme napravi na drugaciji nacin.

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.05.2004 09:45    Post subject: Add user to your forum ignore list Reply with quote

to je to.. hvala..

nisam znao da se Submit ne posalje ako lupis enter.. nema logike..
Back to top
View user's profile Send private message MSN Messenger
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 11.05.2004 10:35    Post subject: Add user to your forum ignore list Reply with quote

Platypus wrote:
to je to.. hvala..

np Smile
Quote:
nisam znao da se Submit ne posalje ako lupis enter.. nema logike..

Čovjek uči dok je živ Smile

A to da se Submit gumb ne posalje ako nije stisnut itekako ima logike. Razmisli o situaciji u kojoj postoji vise submit buttona (input type="submit"), i ovisno o tome koji je stisnut (razlikuju se po name-u recimo, ili čak samo po vrijednosti name atributa), izvodi se određena akcija. Kako bi ti tek bilo veselo da se svi gumbi *uvijek* pošalju u takvoj formi / situaciji? Wink

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Platypus



Joined: 07 Feb 2004
Posts: 235

PostPosted: 11.05.2004 12:52    Post subject: Add user to your forum ignore list Reply with quote

da.. ali ako lupis enter 'stisnut' ces samo jedan gumb..
Back to top
View user's profile Send private message MSN Messenger
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