/    Sign up×
Community /Pin to ProfileBookmark

JS popup and php (need some help)

Hi,

I’m using a web form with php. I want, that when user clicks submit button and it will be an error (some fields will be empty) then I want it to show a little popup window… A simple javascript popup window generator don’t fits me, because I have a php function:

[CODE]<?php if( !$isHideForm ):
global $sErr ;
if( $sErr )
print “<br><a name=’error’></a><center><font class=’form_error’ >
$sErr</font></center><br> HERE SHOULD BE MY AUTO POPUP WINDOW”;
$starColor = $sErr ? “#ff0000” : “#000000″;
$style=” class=’form_text’ “; ?>[/CODE]

Any suggestions?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@motiejusauthorSep 08.2009 — Any suggestions? ?
×

Success!

Help @motiejus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...