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


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Delete Buttons On Form Not Working


i have the following script at the top of the page and the form below on that same page. it works in Safari and FireFox on both PC and Mac. However, in IE the page just reloads and nothing gets deleted. Any suggestions? Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Add Delete Buttons
I am looking for an easy way to have a delete button per subitem in 1 form. For example : a book can have many authors and when I edit the book details I want to have a list of the authors each with a separate delete-submitbutton next to it. Now I have the problem that I cannot know which exact author I want to delete when I click the delete button next to it. I could name every delete button differently like "delete_author1","delete_author2",... but what is the easiest way to process this after the submit.

View Replies !
How To Code Add,find,delete Buttons
Hello, I am new to PHP and Postgres. I am creating a page that displays a form to allow entry of details about a piece of equipment. The form is intially blank. I want to have 3 buttons: Add, Find, Delete. It shows only one piece of eqipment at a time.

The user can fill the form out, press Add and it will insert into the database. Or they can enter the equipment ID, click Find and then modify or delete (by pressing the Delete button) the returned record.

I am able to create the form and the SQL but I am not sure how to have the buttons fire to execute the PHP code for each functionality (Insert, Find, Delete, Update).

Can someone point me to a resource that shows how to do this?

View Replies !
Multiple Submit Buttons Not Working
I am trying to set up a script where the user is submitted to a different page depending upon button hit. Used code according to previous posts here. Looks right, but not working. User goes to blank page with the url for the php script.

Can you take a look and see what the problem might be. I am a newbie and having trouble figuring out what's wrong. Code:

View Replies !
Delete Not Working
Can someone tell me why this delete isn't working:

$strSQL = "DELETE FROM tblMine";

$rsEmpty = mysql_query($strSQL);

I just can't get it work.

View Replies !
Delete Query Not Working As Expected
I have 2 different php forms. One makes sure that a user has chosen an unique user name (below):

$query_rsApp = "SELECT * FROM users where UserName=".$Registered." ";

This Select query works right every time (as far as I can tell). I have a form that I want to use to delete user records.

This Delete query works fine if the username and password are both numeric... But if the username or password is text, it returns the error "UNKNOWN FIELD 'whatever'" where whatever is my search criteria that I am trying to use.

View Replies !
PHP And Form Buttons
i display the content of a mysql table in a HTML table and the users selects a record by clicking a checkbox wich is available for each record .and at the bottom of the page i want to have 3 buttons ADD, EDIT, DELETE ... how i can do that with php ... if it's possible to use plain buttons like <input name = "button1" Type="BUTTON" Value="ADD">

View Replies !
1 Form Have Two Buttons
Is php is scripting or object oriented language and if we want 2 button in form in html and v want that these two button on click open different urls. How it is possible.

View Replies !
2 Different Buttons For 1 Form?
I have a form, that when you click the button that says XML, it will post to doxml.php and start the download of an xml file.

I need to add a button on the same page as the XML button and I need it to post to dotxt.php. So I have the option of downloading 2 different formats from one page. How would you do this?

View Replies !
Form With Two Buttons Yes And No
I have a form with two buttons "Yes" and "No". I want to know how I determine which one has been pressed for the form action. I've tried using the following to determine if "No" was pressed, but it doesn't work:

<form id="Form" name="Form" method="post" action="<?php if (Form("submit") == "No") {echo "index.php";} ?>">
<input name="Yes" type="submit" value="Yes" />
<input name="No" type="submit" value="No" />
</form>

View Replies !
File Delete From Check-boxes With Dynamic Not Working
I need to display all the files in a directory, number them, provide them each with check boxes, after the user clicks the check boxes and clicks the submit button (delete) the corresponding files with those checked boxes are deleted. Code:

View Replies !
Having Trouble With Form Buttons:
Trying to use an image as a button in a form and although it looks good in dremweaver, when i upload it the picture appears inside a regular button. Code:

<button class="mult_submit" type="Submit" name="Submit" value="<?=$count;?>" title="Delete">
<img src="images/delete.gif" title="Delete" alt="Delete" height="20" width="20">
</button>

View Replies !
Form Buttons And Prev/next
Can form buttons be used in prev/next pages? I've been at this a while and can't seem to get it. You can see what I'm trying to do here . As you can see the text link works fine but the form buttons well you get the idea.

View Replies !
Form With Two Submit Buttons
how i can have one form with two submit buttons to perform different action ie add or delete "javascript:window.document.addfiles.submit()" each button has this javascript on it can i put for example 'delete' in the brackets and then pick up in my php whether 'delete' or 'add' was sent through the submit?

View Replies !
2 Submit Buttons In One Form...is It Possible?
I built a working form script that emails me the information the user entered in a css styled form. As well as a send button, I would like to have a print button, that instead of emailing me the information entered, it pulls the same result form that would be emailed to me, in a new window so that the user can view the result and then print it.

Is this even possible? And if not, what are my alternatives? As far as I know, only the submit button collects the data in the fields and puts it into the php variables and then does something with the results.

View Replies !
Two Submit Buttons In The Same Form?
I have a form that contains some text fields that the user is supposed to type some text in. The form has two submit buttons, and the intention is that the program called will do something different depending on which submit button is clicked. Code:

View Replies !
Form Submit Buttons
I'm a little stuck with a script I'm trying to make, to add a TV programme to a database.
There are quite a few fields on the input form, one of which is a 'cast' dropdown box.

Next to this is an 'Add' button. The idea is you can select one cast member, click Add; the PHP then remembers that and displays it above the dropdown box. You can then select another and so on, eventually creating a big list above the dropdown. This all works fine. Code:

View Replies !
Two Submit Buttons In One Form ....
Im facing a problem with a preview page having two submit buttons just like our "New Thread Post". One is an "Edit" button and another a "Save" button which saves all fields to db.The problem is when i click "Save" an error is showing up saying:

Undefined index: edit in C:Inetpubwwwrootpreview1.php on line 9

This edit is the value of edit button for which i want to go back to the page with form .Please somebody help me to solve this out .I would also like to know how to go back to the edit page so that the user can edit the contents if he needs.

View Replies !
Using One Form With Two Input Buttons
I`m using one form with two input buttons, which was working fine:

<input type="submit" name="update" value="Update Template">
<input type="submit" name="restore" value="Restore Template">

if (isset($_POST['update'])
{
code..
}
if (isset($_POST['restore'])
{
code
}

Like I say, working fine. So, then I had the bright idea of creating images.

<input type="image" name="update" src="update.gif">
<input type="image" name="restore" src="restore.gif">

Unfortunately now the form processing does not work. Doesnt the form element name work the same with images? If I change it back, it works ok again.

View Replies !
Buttons In A Single Form
I need to use several image buttons in one form, like:

<form method= post action=index.php>
<input= image name=b1 src=....>
<input= image name=b2 src=....>
</form>

But, in index.php, when I try to find out which button was pressed using the variables $b1 and $b2 , it doesn't work.

View Replies !
Submit And Preview Buttons On A Form
I am trying to do a little script that users can post news but before they click Submit they can click a Preview button (same as in this forum where you can preview your post before posting it)

How do I do it!!! I have tried for ages to work out how its achieved as I am sure its fairly simple.

View Replies !
Print The Two Buttons In The Previous Form
I print out the following after I submit a button. How can i print the following two buttons in the previous form which I'm submitting.Of course, these two buttons should appear only after the form is submitted. Code:

View Replies !
Create A Form With Several Submit Buttons
I want to create a form with several submit buttons, i.e. button1 => do this and button2 => do that, how do i find out which button the user clicked on? PHP Code:

View Replies !
Form With Multiple Submit Buttons
Ive been trying to figure something out for a bit and im a little stuck on it.

I have a page with a form that on-submission passes the values of 2 hidden fields to the next page. Now however, I want to give the user a choice between 2 pages to go to, but im having trouble finding a way to pass the hidden fields to either of the 2 pages.

Right now im trying to use 2 submit buttons to do this, each one linkining to one of the 2 possible pages. Then I use the code:

View Replies !
One Form, Three Submit Buttons With Different Values
I have a form that then gets sent for processing to a PHP script. In this form, I would like to have one input box, and three submit buttons, with different values. Values like "Reprint" or "Answer Key" or "Hints".

What I would like to do is for the PHP script to be able to read the value of which ever submit button was pressed, and then be able to use that information in determining how to process the input value.

Is that possible, or am I looking at having to create three different forms on that one page?

View Replies !
Is It Possible To Have Two 'post' Method Buttons On 1 Form?
I need my single form to accept value inputs for inventory products and calculate the total with a "calculate" post method button.

Once that is done, I need the customer to send me that form with its values to my email using a "send" post button that uses the mail(). Is this possible? Obviously, both the "calculate" and "send" buttons are on the same form but do different functions. Is it possible to do this one one form? Code:

View Replies !
Multiple Buttons In One Form Problem
I have multiple buttons in one form. One of the actions is to another PHP page which generates a CSV file, and uses headers to let the user download that file.

The problem I'm having is that after pressing this button, if the user then wants to press another button, it performs the previous button's action. Code:

View Replies !
Form Which Contains 2 (or Possibly More)submit Buttons
is it possible to have a form which contains 2 (or possibly more)submit buttons, and each submit button uses a different script.

View Replies !
Form Submit - Show Three Radio Buttons
A question is displayed and if the user types the answer and submit it, it gives the information if the question is wright or wrong and provides the link to the next question.

Now, i made few modifications to the script and show three radio buttons and where the user can select the answer and submit it.Now, after i made changes it does'nt seems to be working. PHP Code:

View Replies !
Adding Checkboxes Or Radio Buttons To A Form
Is there a tutorial out there that anyone could send me a link to that uses checkboxes or radio buttons in an email form?

View Replies !
Simple Form With 2 Radio Buttons And A Next Button.
All I want is a very simple form with 2 radio buttons and a Next button.
Whichever button they choose will determine which page will appear next.
I've looked everywhere and tried several things but for some reason it just wont work!

View Replies !
Form Elements - Make The Buttons Images
I dont usually use php but i have this template that has some forms. All i need to do is make the buttons images. this is how the images are called usually in this script. PHP Code:

<img src="<? print "http://".DB_DIRC."/templates/".D_TEMP."/images/"; ?>joinnowitsfree.gif">

View Replies !
Form Which Has Two Submit (or Similar) Buttons At The Bottom
A form which has two submit (or similar) buttons at the bottom. What i want is when buttonA is pressed, the form POSTs the data to buttonA.php, and when buttonB is pressed, POST the data to buttonB.php and so on.

I am not sure how I can do this as as far as i know, where the form is POSTed to is defined in the action rather than the button itself.

View Replies !
Processing A Large Form With 2 Possible Submit Buttons.
i'm trying to resolve a problem i have when processing a large form with 2 possible submit buttons. I am using PHP server self and running the script at the top of the page. Regardless of which button is pressed,

the form data should be inserted into the database. The only difference is that one button will redirect to another page. When i test for which button has been pressed, however, I don't want to have to repeat all the insert statements for each IF statement. However,

I can't use if (isset($_POST)) as the page prior to the current one is also a form, therefore the if (isset($_POST)) statement tries to execute the data on the first loading of the page, which shouldn't happen. If anyone knows how I can avoid having to repeat the insert statements, i'd be grateful for any pointers. Not actually sure if any of this makes any sense! Code:

View Replies !
Multiple Submit Buttons In Dynamically Generated Form
I have one big form on a page, within which is a list of text fields pulled from a mysql db. Each text field has an 'update' button, which submits the main form, and should UPDATE the textfield it relates to.

The problem is, all the buttons have value="Update" and I can't think of an efficient way of passing the unique id of each record to be submitted with it. Obviously, having a hidden field for each textfield won't work because the form will use the last one displayed.

View Replies !
Multiple Submit Buttons On Shopping Cart Form
I am using an SQL query to populate a table with product data.  The form is processed by another file.  The buttons after each item are SUBMIT buttons.  I want to have the user click the appropriate button and it sends that particular items ID value on for processing.  The only way I found to do that is to have the submit button's value be the ID; which of course displays that ID instead of a "Proceed to Checkout >" label.  I have tried a HIDDEN value inside my FOREACH loop but it returns EVERY ID not a particular one. 

View Replies !
Parsing An HTML Form That Uses An Radio Buttons With An Array
I am having problems parsing an HTML form that uses an radio buttons with an array for name:

<input type = 'radio' name = '".$link_results['name']."' value = &#391;'>

The issue seems to arise when $link_results['name'] has spaces in it. I have tried htmlsepecialchars and htmlentities to no avail. When I reference $_POST[$link_results['name']] on the next page I do get the value of &#391;' on variables that do not contain spaces in the name. On variables that do contain spaces I get no result.

View Replies !
Form Submit - Adds A Delete Button To A Form
I have a line that adds a delete button to a form and I have an onClick procedure that confirms if the user wants to delete an article, how can I use PHP to code a statement so if they click OK it deletes the article from the database? Or have it link to a page like events.php?do=delete or call a function? Or do I absolutely have to use javascript?

Here's my code:

PHP Code:

$delbutton = '<input type="submit" value="Delete" name="delete"%s>'
            $jsconfirm = ' onclick="return confirm('' . $LANG01[39] . '');"'

sprintf ($delbutton, $jsconfirm);

View Replies !
How To Create List Of People With Yes/No Radio Buttons For Each, Then Process Form
I have a database result set with names, IDfield and a Y/N field.

How do I create the radio buttons that can then be processed easily using an
array (I assume) with an easy-to-loop-through structure?

The form would look like:

Joe Smith O[Y] O[N]
Karen Smith O[Y] O[N]
....

View Replies !
Php File Delete Form
How would i go about making a file delete form in php. so that the user can delete .jpg and .gif files from a web directory.

View Replies !
Mysql Delete From A Form
i'm trying to find out how to get this to work. You type in a name of a record in the database and it removes it. In this case it's deleting the record that when you type in the name of the server it looks for it in the column "servername". You type in the servername and it will delete the whole record. Code:

View Replies !
Edit Delete Form And Quotations
I have a form where I add a lot of ' and " for feet and inches into MYSql and most of this works fine except when I go back to the Edit/Delete Form.

It stores the ' and " in the database, reads and outputs the ' and " on my page but when I use the edit/delete form it cuts off at the '. Is there a simple solution to this on an edit/delete form ?

View Replies !
Form Not Working
My form Is not doing what it is supposed to do. It just keep recycling itself everytime i push the submit button. PHP Code:

View Replies !
Form Working
What am I doing wrong? I can't get the value entered into text.html to be seen in text.php. text.html is:

<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<FORM METHOD=GET ACTION="text.php">
Who is you fav author?
<INPUT NAME="Author" TYPE="TEXT">
<br>
<br>
<INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>


text.php is:

<html>
<head>
</head>
<body>
<?php
echo $Author;
?>
</body>
</html>

View Replies !
Form Is Not Working
My host changed servers and now a simple HTML form is not working! The variables are not given to the next page. What could be a possible cause?

<form name=detail method=post action=confirm-free.php>
<input name=name type=text id=name value=>

View Replies !
PHP Email Form Not Working
I found this code for making a php email form for a web site. It works
fine on my ISP, but not on my friends...could it be that my ISP uses
php5, I know that hers does not, so I assume it's php4. Is there anyway
to tell? Here's the code. It sends me email fine, but when it's on her
ISP, it says it sent the mail, but nothing goes through.

<?php
if (isset($submit)) {
switch ($recipient) {
case "whole-family":
$recipient_email = "gregf@kcls.org";
$subject = "Gregs test php mail";
break;
case "Brian":
$recipient_email = "brian@meyer-family.com";
$subject = "Message to Brian";
break;
case "Jessica":
$recipient_email = "jessica@meyer-family.com";
$subject = "Message to Jessica";
break;
case "Eric":
$recipient_email = "eric@meyer-family.com";
$subject = "Message to Eric";
break;
case "Paul":
$recipient_email = "paul@meyer-family.com";
$subject = "Message to Paul";
break;
case "Dudley":
$recipient_email = "dudley@meyer-family.com";
$subject = "Message to Dudley";
break;
}

View Replies !
Form Post Not Working
I've made a small script where my users can enter their usernames into a form and when they press submit it sends the username to me as an email. It doesn't seem to be working though. Check the Code:

View Replies !
Email Form Not Working
I have a form that i have successfully used on 3 sites. On site number 4 it doesn't want to work. Here is the basic code:

View Replies !
Contact Us Form Not Working
I bought a flash template and am trying to make the contact us form work. I had to make a contact.php script and i thought i did everything correctly but its sending an email with no body and the sender is "unknown". The contact form has fields:

Name (t1) , Email (t2) , Phone Number (t3) and Message (t4). Code:

View Replies !
Form To E-mail Not Working
I have hosted ths simple script on my clients site, the form seems to work fine - BUT we are just not getting the information as an e-mail. Code:

View Replies !
Form And Iframe Not Working?
I got a index.php file with two fields and would like to verify this fields using iframe behind the scenes, than wish to display results of iframe in the index.php file below the name and email fields.

When i open the index.php file it just display the form and errors, i wish to execute it when i press the submit button and reset the form. Code:

View Replies !
Mail() Form Not Working
I have an email form from way back, but in editing it I've somehow managed to break it. Here's what I've got: Code:

View Replies !
Form Mail Not Working With AOL
I operate several web sites and on 2 of them I am using different PHP files for online forms.

The one on my fire department page worked just fine when I established it at <removed> but now none of the PHP files I have on my web sites are working to allow the data to be emailed to me.

I think I narrowed this problem down to AOL. On eo fthe forms goes to 2 people (INcluding myself) The other person said he was not receiving emails either to his AOL address when the form was filled out.

Luckily he has an additional email address (Not on AOL) I tried plugging that address in and he is receiving mail just fine.

I emailed AOL and just got the same ol garbage - we are doing "everything possible to eliminate spam" but this is causing no form mail emails to come through in AOL.

View Replies !

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