Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Button Menu To Run Event


This code runs and plays a WAV file whenever someone loads my webcam page.  I would also like to add 3-4 Buttons that when clicked would run the code to different wav files. (IE WAVE1.WAV or WAVE2.WAV e.t.c.) What am I missing? Code:




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Dropdown Menu Without Submit Button
How do I get a dropdown menu to submit with the selection of an option rather than pushing the submit button.?

[PEAR:QuickForm] Dynamically Change A Dropdown Menu According To Another Menu?
I've been using QuickForm for a few months now and I am now given a
new challenge:

I've got a search form with a dozen of dropdown menus, the first
dropdown menu being "Brand". If you select either Brand A, B, C, D...
Z, the second dropdown menu "Model" must be dynamically changed to
model AA, AB, AC, AD..., according to the models manufactured by the
brand selected in the first box.

I've seen that done on quite a few sites, but never found if QuickForm
had a quick & clean way of doing that.

Upload File Having Browse Button And Submit Button On Same Form
I am building a form where the user must upload a picture and fill in his
details.
Now I have a problem as all of this is on the same form.

How will I be able to have the Browse button to open the "file browse"
dialog
and the Submit button to submit the form data.

As I believe you can not use GET but must use POST method for form.
Is there any means that I can use GET cause I need to get form variables
from URL as well.

Passing Radio Button Values To A Submit Button (gif)
How do i pass the value of the radio button to be put of the action
that includes the value as part of the URL being submitted - "/
picked.php?pick_num=". Any help with be appreciated. Thanks

<form method="post" action="/picked.php?pick_num=".<php? $value ?
<input type="hidden" name="cmd" value="0">

<table width="100%">
<td align="center">
<INPUT TYPE='RADIO' NAME='pick_1' VALUE=&#391;'>Day;
<INPUT TYPE='RADIO' NAME='pick_2' VALUE=&#392;'>Week;
</td>
</tr>
<tr>
<td align="center"><input type="img src="/images/pick_now.gif"
BORDER="0" name="send"></td>
</tr>
</table>

Image Button Vs. HTML Button
I have a form I've been working on trying to get working, and to my surprise, the only reason it wasn't working was because the submit button was an image. PHP Code:

PHP Event Calendar
im looking for a PHP Event Calendar that is small in size and when a event is placed on a day will color code that day, then when you mouse over that date / click on the date it opens a new small window that will show the current events for that day.. (showing time the event will take place ect)

i may have to write this my self.. iv done some searches for some and found some good looking ones but they require me to buy them.. i was woundering if any one knows of some that do this and can be easily modded that are free?

Event Handling
I have a calendar image which displays the date in a textbox when the event onclick is called. Is there any possibility of calling a php function (rather than using a submit button) at the same time, so that tha data from the database can be displayed..based on the value of textbox ?

Event Calendar
It's simple to go and download a calendar, but i wish to actually create
my own.

Does anyone here know of any good resources for creating my own event
calendar?

Php Event Handlers?
I need to run a php function when a user submits a form. I know in javascript I can just use the onSubmit event handler. How would I run a function in php when a user submits a form?

Event Driven PHP
Maybe someone has an idea about this... I have two PHP scripts and
they would like to efficiently communicate (on a a callback or event
driven basis) with each other. If these are CLI versions of PHP, this
is not so bad because I can have the communication go across a hidden
instance of IE by means of events on IE.

But if one of the PHP instances is invoked via a server (Apache 2),
then the security restrictions become fairly severe. Specifically,
though I can create instances of IE ($ie = new
COM("InternetExplorer.Application")), the CLI versions of PHP cannot
see the 'server instances' of IE and the server PHP's cannot even query
for instances of IE (using the Windows collection of the
Shell.Application COM object). Thus, I cannot hook up the two
instances of PHP.

I thought of other possibilities. Each is essentially a way to
transfer data. I can either use VOLATILE environment variables (for
small amounts of data), or I can use http://php.net/shmop or writing
files (but I hate writing files) for larger amounts of data. All these
suffer from the same problem, however. Near as I can tell, there is
nothing to let the 'listening' side know that data has changed. It has
to keep running a loop, and checking for any possible change in data.
Of course the sending side could specify where the change has happened,
but this still requires the receiving side to be running a loop.

So my question is whether anyone has had a happy approach to the issue
of event driven programming in php? Another way to ask this is whether
php has callback functions that can be remotely triggered by
cooperating programs (e.g. the __destruct of classes is near to this -
it's effectively a callback that responds to an event: the destruction
of a class instance)

PHP Event Calendar
Im trying to add an event's calendar to my website. I have spent all day trying to get Obsidian's php event calendar to work but with no success at all. What I need is something very very similar to the birthday calendar available from the top nav bar of this forum.

I have a reservation table with reservations that have a 'CollectionDate' and a 'ReturnDate'. I'd like to display each record on both of those dates. Any advice/tips/ knowledge of a good script and its whereabouts would be fantastic!

Window.onClose Event
Can any of you tell me how do I manage the window.onClose event in
Internet Explorer/Mozilla, What I really need is to control when the
user closes the window, but without using events like <BODY onUnload>
or <BODY onBeforeUnload>....

Event List Browse
We would like to add a new feature which lists all events. That in itself i sno problem. But I want people to specify a few parameter so that they can filter the events. That filtering thing is what I am having trouble with. I am looking to be able to do something like this. http://www.site.net/events.php?show=all

Time Based Event
I'm trying to get a single quote to display once per day. The quotes are actually the subject lines of posts made on a forum board. Right now, I can get them to display just fine picking a new one on each page view. I'd like to get it so it sets one quote per day, and doesn't display a new one until the next day.

I have a settings table, so I was thinking it could work something like this:

1. I initialize the script and create the rows quotetime and curquote in settings. After creating the rows, the script will put the first quote and current date in the value column.

2. In my function, it'd be something like PHP Code:

Event Driven Handler In PHP
I started creating a variety of classes
(calendars, input forms, combo boxes, etc. ) but I am running into code
overhead when I integrate these objects (testing for POST, GETS,
Cookies etc.).

I am looking for an interrupt driven approach to handle event
processing (akin to VB's GUI) to simplify interactions. Basically, I
would like to create the objects to be displayed on the pages and then
activate a page event handler to process ithe inputs. Currently I am
using a mix of js, php and session cookies. But I don't like this
hybrid approach.

AFIK, PHP does not natively support event interrupt handling. Is there
somewhere an add-on or a more elegant work-around to handle such
situations?

I read about Ajax, XML and related technologies. Is this the path to
go?

Triggering A Javascript Event With PHP?
I'm creating a login page but instead of redirection with (Location: http://example.com); I would like to use javascript redirect. Can anyone show me an example or refer me to a tutorial?

PHP In Windows. Can I Read From The Event Log?
I had no luck in my google search for this answer.
Does anyone know if it's possible to read the entries in the Windows
Event Log of the server running my PHP page? I'm trying to create an
itranet page that lists errors from the server event log.... I'd
prefer a pure PHP solution, but I'd be happy to try other alternatives
that involve call outs to non-PHP code.

Drop Down Box Change Event?
Does anyone know if there is a upon change event for drop down boxes in php and how to use it?  I have 2 text boxes that have info in them and when the second one is selected I want to get both values do a sql statment and populate the third box.  So I am guesing to use the event change for the second box to execute the code.

PHP Automated Event Reminder - Is It Possible?
Is it possible to for PHP to be self automated (without page load from client side) to process actions for timed events? Example; like a Calendar with an Event Auto Reminder (to send an email to someone at a specific junction in time; without client side interaction; to reminder person about an event).

Is It Possible To Use Php To Read An Entry From The W2k Event Viewer??
Is there anyway to read with PhP an entry from the Windows2000 prof or srv event viewer?

PHP PRINT Statement With OnChange Event
I have tried every variation of the "onchange" statement below without
any actual reloading of the page. I am hoping that the PHP PRINT
statement is constructed wrong, otherwise it is javaScript error an
needs to be posted in the javaScript newsgroup.

The FireFox javaScript Console reports the following message:

Error: missing : in conditional expression
Source Code:
location.href=themes.php?scheme=(form.color_scheme s.options[form.color_schemes.selectedIndex].value)

My Code for the dropdown box is:
<form name='color_schemes' method='post' action='themes.php' >
Select a scheme:&nbsp;

<?php
print "<select name='scheme' size=&#391;'
onchange='location.href=themes.php?scheme=(form.co lor_schemes.options[form.color_schemes.selectedIndex].value)'>";

//populate the dropdown selector box...
$counter = 1;

foreach ($schemes as $scheme)
{
if ($selected_theme == $counter)
print "<option value = '$counter' selected>$scheme</option>";
else
{
print "<option value = '$counter'>$scheme</option>";
}
$counter ++;
}
?>

Set_time_limit And Event If Limit Is Reached
I am having trouble with my timelimit. I set this to 240 on default (which should be enough you'd think). BUT my script uses file() to get remote data and this can take a long long time sometimes and the script times out and file() has no timelimit of its own.

Is there a way to catch the time exceed error and start a function (like register_shutdown_function() on an exit, which doesn't work on a timeout)?

Call PHP Form Onchange Event
I have a trouble when i want to use a list box, I want when I choose an item on it then data in textarea'll change too.

Linking Php Function In Onchange Event
i have probelm in linking php function in onchange() event. I am new to php. Im my database (test) ,i have per_det as table whic have two cloumn(eno, ename). My query is list all eno from database in combo box. when user select the eno the respective name from database should be displayed in textbox, Code:

Any Smarty Event Calendar Sample
Has anyone of you already create a event calendar using smarty. I would like to put event calendar in my smarty web page but dont know how to do it....

Reading Windows Event Logs Using PHP
Is there any way of reading the Windows event logs via PHP without having to export them to flat files etc.

PHP Event Calendar Posting Form
I'm using the basic PHP event calendar tutorial that is on this website, and I made a form to add the events. The problem is that the date isn't posting right into the MySQL. For the date it says: '0000-00-00' instead of what I inputed. Code:

How Do I Stream A Live Event Like A Music Concert
How do i stream a live event like a music concert using php.

Need Php/mysql App To Handle Event Ticket Sales
I don't know if this is the right place for this, but I'm looking for
a free/cheap/resonable priced php/mysql app that I can use to sell
Event tickets and manage the people signing up for the Events.

Can someone point me in the right direction?

I've looked on hostscripts, webbuilder, etc...but haven't found
anything.

More specifically the events happen similiar to:

Mon/Wed/Fri at 6 pm for 3 weeks. So the person would pay $10 per
session or $90 total for 3 sessions for the full 3 weeks.

Simpel Event Calendar For A School Website
I am looking for some php/mysql scripts to set up a simple calendar for a
school website. Most calendar scripts I have found are far to complex. The
only functionality I want is that users (parents, personnel, children) can
see the current calendar and that one person (the one who knows the
password) can manage what is in the calendar.
It would be nice if it is in Dutch or easy to translate. We have set up the
website with PHP and MySQL support

Calling All XOOPS Users! Need Event Module And The Site Is Down
I am charged with making a calendar (like yesterday) and the event
module is not on the website; or rather, the website ISN'T at this
point in time.

Anyone have a copy of an event calendar module they can send me?
(daveDOTedelhartATvarianincDOTTcom) The clock is running out (Irony
intended) and I would hate to code a module that someone has already
done well by hand just because the darn XOOPS site is teats up.

Getting Another Menu
how can I do to create another menu with the results from the options they choose?
For example, they are looking for their grades so they choose in a first menu the carreer, in other menu the grade, and then when they finish choosing the grade, It appear automaticaly in other menu all the names of the subjects concerned to te carreer and grade given.

Php Menu
How do I have The menu and the context information display at the same time? Code:

Populate One Menu From Another
I thought this would be simple and there would be advice / tutorials
everywhere for this, but now that I'm working on it, I can't find any
reference except for ASP or Javascript code. PHP/MySQL - 3 form select
menus: Project, Categories, Subcategories. When a Project is selected, the
Categories list is populated based on Project selected, then Subcategories
list is populated based on Category selected. I see this all over the Net,
but through 10 books, there isn't anything specific. I think I get lost
with some of PHP structure since I've been using DW - I end up editing most
of it in order to follow it, but DW works pretty good for getting initial
testing done. I just can't seem to find further guidance on this. So far I
have:

Drop Down Menu(add Cat)
I have DB to add category and forum to edit the terms that in the cat so I add this code in the edit forum to change the cat of the term by choose the cat from drop down menu
PHP Code:

Collapsing Menu
I have written the code to do this however I am completely at a loss to do one particular thing. To best explain what the problem is I will give you an overview of how the menu hangs together.

The menu looks like this:

Menu-submenu
I've to create a simple site with menu-submenu.

The submenu are shown in a "dropdown" object that use "<ul><li>"....

Here is the structure:

group1
menu1
menu2
group2
menu1
menu2
menu3
.....

by selecting the link group1, group1->menu1, group1->menu2 I'd like on a
left pane the submenus structure of the group1, but not the substructure of
the menu2 etc.

What's the simple way to create it ? I'd like to modify only once and have
this working on all my site (I use a simple template using a table).

Dropdown Menu
I want to upload a feild values into a dropdownmenu. can anyone help me how to write in php code.

Drop Down Menu
I have a page that uses php to look up specific fields in a specific table of a specific database based on the username. Using this, it creates a dropdown list of information belonging to that user. The fields in question each have 13 pieces of data. Based on what they click in the dropdown box, I need that specific data to pass onto hidden fields on the page. Code:

Drop Down Menu
I'm struggling to get this to work. It is suppose to show only $name and not $name and $email PHP Code:

Drop Down Menu
I am implementing a website with dreamweaver. I dont know much about
programming but I can handle scripts and manupilate.

does anyone know a website that i can get a free drop down menu script
to use on the website's navigation?

Template Menu
I'm trying to decide witch way to do my menu for my program.... see some menu will be accessed by certain users with certain power... but i cant seem to decide with way to do it because... the menu is also template based ( $template = new template( menu.shtml )) anyone has done this in a way to keep the template system integrated and only show certain menus according to there users prv?

Dynamic Menu CSS
I am trying for a long time now, to find a way of creating a dynamic drop
down menu. I have the CSS part ready and working and also I have the first
level of the menu working.
the problem I have is how can I submit the id from the first level menu in
order to make the query and create the second level and so on menu.

I am trying to avoid Javascript but I can't see another way at the moment...
What I want to achieve is to produce the menu on HOVER if that is not
possible on click will be ok as well.
Do any of you have an idea ?

This is the code I have :
**********************************************
<div id="menu">
<ul>
<li><h2>Products</h2>
<ul>
<?php do { ?>
<li><a href="?cat_id=<?php echo
($row_product_categories['prod_category_id']); ?>"title="<?php echo
strtoupper($row_product_categories['prod_category_name']); ?>"><?php echo
ucfirst($row_product_categories['prod_category_name']); ?></a></li>
<?php }
while ($row_product_categories =
mysql_fetch_assoc($rs_product_categories)); ?>
<ul>

<?php do { ?>
<li><a href="index.php?id=<?php echo ($row_products['prod_id']);
?>"title="<?php echo strtoupper($row_products['prod_name']); ?>"><?php echo
ucfirst($row_products['prod_name']); ?></a></li>
<?php }
while ($row_products = mysql_fetch_assoc($rs_products)); ?>

</ul>
</li>
</ul>
</li>
</ul>
</div>
**************************************************

Drop Down Menu
I have 2 drop down boxes on my site. I want the selection of the
first one to populate the second box.

Drop Down Menu
What i would like to do is look in a file and see what the name's of the files are in there and have them put in to a drop down menu. Dose some one know of a tutorial on this or how to do it?

Drop Down Menu
I have a problem with a drop down menu, I have 2 drop down menu's if 1 select in dropdown menu 1 a catagorie then I must give this to menu 2 and then there must be things in menu to with catagorie from menu 1 I just want when I clicked menu 1 the php file refreshed en gives the catagorie with the refreshed file but HOW?

Menu/submenu
I wish to make a menu (in php), and every time a menu-item is selected, a
sub-menu will be visible.

Triple Menu
I'm going to have a website that will have a very dynamic menu structure (one that could change every few minutes) and it is essential that everytime the menu is built, the updated database entries are included.

Background:  The site is a homework study site that gives study tools, etc.  So lets say that i want to look up the Math (subject or "class"), Pre-Algebra ("course"), CPM ("curriculum"), i would first select Math in the first drop down menu, then Pre-Algebra in the second, and then CPM in the third.  In the second and Third boxes however, there will be other courses and curriculums to choose from.  Those will be updated very regularly and i do not want to do this manually. Code:

Drop Down Menu?
Im looking for a script for a site im making that will make a drop down menu which I can customise the color of. Simple, like a border and background color, but is friendly with all types of IE explorer.


Copyright © 2005-08 www.BigResource.com, All rights reserved