/    Sign up×
Community /Pin to ProfileBookmark

embed sound if value = ""

I have a form on another page, that points to this script

Why won’t it work? the only thing not working is the sound, If I put echo “”; whatever in there it will echo it, so i know the script is doing its job, but the embed isn’t working.. any options?

[code=php]
<?php
if ($_POST[‘sound’] == “sound”) {
“<embed src=”doorbell.wav” autostart=”true” hidden=”true” name=”sound1″>”;
}

?>
[/code]

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@cjc1055authorJun 16.2005 — Well I got this to work, but this isn't doing what I need it to do. I need the sound to play as soon as the button is clicked and then redirect... so this wont work.. does anyone have ideas?
Copy linkTweet thisAlerts:
@ShrineDesignsJun 17.2005 — embed is a depreciated element in html and should not be used, if you need to play audio or video use flash
Copy linkTweet thisAlerts:
@BeachSideJun 20.2005 — embed is only for netscape based browsers too, if I am not mistaken. IE uses object.

Also your code snippet shows nothing about what your asking
Copy linkTweet thisAlerts:
@ShrineDesignsJun 20.2005 — actually it is the oppsite, IE only supports embed and bgsound elements
×

Success!

Help @cjc1055 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 5.28,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...