I was wondering how to enable and disable form buttons, depending on which button I select, with JavaScript within PHP?
I have 5 buttons: "New Conference Leader', Save Conference Leader", Unlock Conference Leader", "Update Conference Leader", and "Delete Conference Leader". Update and Save buttons are disabled when the page loads.
So for example if I select "New Conference Leader" button, all buttons including "New Conference Leader" should be disabled, except for "Save Conference Leader", which should be then enabled.
All the help will be helpful:). I have had an error on the page when I run the PHP script saying that it was successful but with errors or something.
If you're trying to do this with PHP, you might be more successful creating an initial page with the buttons that should be enabled at the start (New, Update, Delete), and then create a sub-page that displays a different form depending on the action the user selected previously. This way, the user only sees the buttons relevant to his/her current action. Here's some beginning code to help you out:
<?php
$action = $_POST['action'];
if($action == 'new')
{ //display the form for creating a new conference leader }
else if ($action == '$update')
{ //display the form for updating a conference leader }
et cetera.
Each sub-form would be processed by a third-level page (e.g. handle_create.php, handle_delete.php, etc.)
I want to execute java command for a software which is stored on my web server with the help of...
(More)
I want to execute java command for a software which is stored on my web server with the help of command line but this should be executed through php... I have a code as follows,but its not working ,i need to integrate all exec commands. $cmd='cd C:Program FilesApache GroupApache2htdocsmainsphinxsphinx4-1.0beta-binsphinx4-1.0betain'; exec('C:WINNTsystem32cmd.exe'); exec($cmd); exec("java -mx312m -jar wav2text.jar voice_rec.wav>6.txt"); Reply fast>.
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the...
(More)
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the file in one page through basic input tag with file attribute. in next page am not getting the file path in order to mail it. Please help me.
Hiya Im trying to get a collaspable panel to save state, the example I am currently using is...
(More)
Hiya Im trying to get a collaspable panel to save state, the example I am currently using is downloadable at: http://www.webdesignermag.co.uk/tutorial_files.php?tutorial=19 all the other cookies such as colour and panels work fine, but when you add a new section to the feeds in the panels and refresh the page it reverts to the original state. Is there anything you could advise me on please, or install the demo and have a look for yourself, I would be really grateful if you could help. Regards Richard