Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for onclick javascript in PHP

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Apr 12, 2015 at 14:49 audit Suggested edits
Apr 12, 2015 at 16:39
Mar 19, 2015 at 4:45 comment added C3roe So you know how to call one JavaScript function – alert – correctly "from within PHP", but you are not able to transfer that knowledge to calling another JS function? And btw., you don’t need to use JavaScript for this in the first place – instead you could simply not output the style="display:none;" attribute on the form, by checking whether or not a password was send right there and then in PHP.
Mar 19, 2015 at 4:37 answer added Sujan Shrestha timeline score: 1
Mar 19, 2015 at 2:28 comment added jonmrich Like @Lashane said, you can't do what you're doing. Instead, for the first if statement, echo something like "success". Read this with an if/else statement in your page's javascript and that's where you call the pW function.
Mar 19, 2015 at 2:26 comment added Iłya Bursov you cannot call js functions from php code
S Mar 19, 2015 at 2:22 review Triage
Mar 19, 2015 at 2:33
S Mar 19, 2015 at 2:22 history asked Jennifer CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /