Option Button ?

May 15, 2002

I want to create a form with 3 groups of 2 options buttons (radio buttons in Dreamweaver). Can someone helps me in sending links to PHP Reference ? Example:

a > 0
Option(Yes) Option(No)

b > 0
Option(Yes) Option(No)

c > 0
Option(Yes) Option(No)

Submit Button Action of the submit button: If option_a_yes is checked (...) then open html.


Multiple Option Button

Nov 18, 2007

I have 2 fields username and password inside a form + 3 options (member, affiliate and admin) each one has different file (member.php, affiliate.php and admin.php) thus each option have a different post file. how can you do it in php to have 1 form with the mentioned but forwarding to the selected option file.

View 10 Replies View Related

Output Selected Option When The Submit Button Pressed?

May 26, 2005

Given a dropdown form how can I output the selected option when the submit button is pressed.

Box: [red ] [submit]
[green ]
[blue ]

so the user selects an option from the dropdown menu, which is highlited then they press submit, I want to display red, green, blue or orange, whatever was submitted.

View 7 Replies View Related

Add A Delete Link / Button Option In A Drupal 6 Module?

Jan 7, 2011

$block_content = l('delete', 'onthisdate/'.$links->cid);

i have used this l() function to create a delete link but after clicking this delete link how can i delete a data from my database. I want to delete data for $cid that means if $cid=1 then row 1 will be deleted.

View 1 Replies View Related

Show Submit Button Only If Checkbox Is Checked Option?

Jan 4, 2011

i have an html form which is a "post"on it i have an array of checkboxes and a sumbit button, once button is clicked i go to another page where i handle those boxes checkedthe problem now is if NO checkboxes are checked and i hit the submit...i get errors on the other pagemy code:

foreach($product_names as $product_row) { ?>
<td ></td><td width='200px'><?php echo $product_row->getName(); ?></td>

View 2 Replies View Related

Pass The Selected Option In A Dropdown To AJAX Always Gives The First Option?

Oct 21, 2010

this is my code:

comenzar = function(){
document.getElementById('gene').onclick = xmlhttpPost("generador.php");

View 1 Replies View Related

Generate A New Custom Option Value, For The Specific Option?

Dec 27, 2010

reads specific xml files, and imports products.Now, each of these products may have a set of attributes,(i.e. color for example).So, what I'm doing is importing each custom attribute, and generating a specific string, "Yellow, black finish wood" for example, and that would be a radio button you could select from when you go to order the product.Now, when I come to a product that has the same "parentid" but a different unique id, I need to generate a new row for the custom option radio button, so if there is another product where the color is red, I would have the following to select from:Red, black finish wood and Yellow, black finish wood.

This is working great for the first product with the same parent id, in other words, if I'm creating a brand new product, and not just adding custom options to the same product.My question is, how do I generate a new custom option value, for the specific option?In other words, how do I add a new row to a certain option that is already created?Here is basically what I'm doing to generate the first option on a new product.

$options = array();
$options[$ParentID] = array(
'title' => 'Option Title',
'type' => 'radio',
'is_require' => 1,


this works out great, because magento generates an sku when they order a certain product in the format of $ParentID_$UniqueID, and then I can send the $UniqueID off to the vendor for the order.So again, I'm open to suggestions as to how to add a Option Value to an already created Custom Option.

View 1 Replies View Related

Select <option> </option>

Jun 25, 2007

I have this script in a form, it is trying to send a selection from the from to the next page. But the proble is that if the selection has a space in it, it only sends the first work to the next page. Code:

View 3 Replies View Related

Upload File Having Browse Button And Submit Button On Same Form

Oct 12, 2005

I am building a form where the user must upload a picture and fill in his
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"
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.

View 5 Replies View Related

Unable To Retrieve The Value Checked Button In Radio Button Group

Dec 7, 2010

I am trying to retrieve the value of the checked button in a radio button group.

<script type="text/javascript">
function ButtonClicked() {
alert($('input[name=datetype] :checked').val());
<form action="test.php">
<input type="radio" value="d1" name="datetype" checked onclick="javascript: ButtonClicked()">Date 1 <br />
<input type="radio" value="d2" name="datetype" onclick="javascript: ButtonClicked()"> Date 2 <br />

The output is always 'undefined' . I am a beginner to jQuery(and JS)

View 3 Replies View Related

Javascript - Combine JS On One Button And Send Mysql Update On Same Button?

Mar 4, 2011

question is about using JS on a button(button) and sending a php_my_sql update on the same button. The problem is JS uses button, right? but PHP uses button(submit). How can I get these two to work on one of these buttons, cuz there has to be only one button. this is my code for JS


View 5 Replies View Related

Generating Dynamic Table With Submit Button - How To Get Which Button Is Pressed

Nov 27, 2010

i have to submit my coursework in php by 3rd dec, I stuck at one place where i have to upload multiple photo and one can see all the photo he has uploaded and can edit or delete that photo so i have done uploading now i am showing those pics in table by running loop and generating tr and td but now i have two buttons with each row edit and delete now when i clicked on one delete or edit that pic should be delete or give text box to edit description of pic.....

View 8 Replies View Related

Create Form With Submit Button And Associate Button To Method?

Nov 13, 2009

Is it possible to create a form with a submit button, and associate the button to a method that i will write? i am basically trying to add and remove from a text info area, and when the user selects add or remove then the function will get called and do tis thing

View 4 Replies View Related

Passing Radio Button Values To A Submit Button (gif)

May 24, 2007

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 align="center"><input type="img src="/images/pick_now.gif"
BORDER="0" name="send"></td>

View 2 Replies View Related

Disable An Image Button That Acts As Submit Button?

Oct 27, 2009

I have a image button thats acts as a form submit button:

<a href="#" onClick="submitComment('+[id]+'); return false;"><img class="submitcommentimg" id="submitcommentimg<?php echo $id; ?>" src="/images/check.png" alt="Comment!" border="0"></a>

What is the best way to 'disable' it to prevent accidental double clicking.

View 5 Replies View Related

Convert Submit Button Of Array Into Image Button?

Aug 21, 2009

i doubt whether this is possible, if it is possible i ll be delighted . I have a form of php array , with a submit button passing the values , this submit button is so ordinary , so i want to change the look and feel of button , where i have a button image for it , but i cant fix it , ths submit button in php is this,

$form['submit'] = array('#type' => 'submit', '#value' => t('Create Account'), '#weight' => 40);

View 5 Replies View Related

Multiple Submit Button - Get The Value Of The Hidden Value Associated To The Button

Nov 12, 2010

i've a form POST with multiple submit buttons. i understand to get this to work i must have them with different name. however, i wanna keep the name to be the same because i wanna handle the POST using a single script. im not sure if there is other way but i know javascript can be used. however, how do i get the value of the hidden value associated to the button since now they have only a single? my example is as follows:

<form method="Post" action="file.php">
<input type="hidden" name="removeid" value="1" />
<input type="submit" id="btnremove" name="btnremove" value="Remove" inputbutton/>
<input type="hidden" name="removeid" value="2" />
<input type="submit" id="btnremove" name="btnremove" value="Remove" inputbutton/>
<input type="hidden" name="removeid" value="2" />
<input type="submit" id="btnremove" name="btnremove" value="Remove" inputbutton/>

View 6 Replies View Related

Designed Button In Dreamweaver And Then Get Value Of Button When Clicked

May 3, 2010

Is there a way I could get the value of a button I designed, and if I click the button it would be one value, and if it was not clicked it would be another . After that I can echo the checked values into a I am trying to make it so, if I have a button I designed click, it would select a certain table in mysql.

View 14 Replies View Related

A Button To Pull The Full Add Up And A Button To Submit For Job?

Nov 17, 2009

Build a form which i can do on my own.The issue is when i pull the data from the database i need it to show up like url.I need there to be a Subject, Description, and amount to be paid, there will also need to be a button to pull the full add up and than a button to submit for the job.

View 2 Replies View Related

Can't Send Cache Limit Cheaker And Back Button Session Variable Still Displaying After Logout And If Prees Back Button?

Jan 25, 2010

1.As user enter username and password in sign-in-form.php then values are collected in sign-in-action-form.php page and the i am storing username into session variable like thisIn database i have a table named employee

<a href="logout_file.php">Sign Out</a>
if (username and passwords are matched)


View 2 Replies View Related

Image Button Vs. HTML Button

Jul 15, 2002

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:

View 9 Replies View Related

Show Button As Push Button?

Aug 11, 2009

how we can show button as push button, it can be multiple push button. as u see that i have selected 2 & 3, then after that these number is shown in Seat No. input box. how can we can show this. and number of seat should be shown in the field of Total Seat,

View 1 Replies View Related

Set The Radio Button As Default Button?

May 9, 2011

As i know we can set the radio button as default button by using the code (checked) . how about the select button? Can i do the same thing to select button?

View 1 Replies View Related

Implementing A Preview Button For A Form And Keeping The Form Data After Clicking The Button?

Mar 13, 2011

I have a form with a wysiwyg editor and I would like to add a preview button so the user can see how the content would look like in the website.

In order to do this I inserted another submit button wich gets the info from the form and redirects to a preview page.

All ok, but after clicking that button the form content disappears so the user can see a preview but it has no data in the actual form in order to make some changes or to submit the form in order to save the data.

So here's my question: can I have this preview button and also keep the data in the form after clicking the preview button?

View 1 Replies View Related

Add Another Upload Box Button Acting As "submit" Button

Sep 5, 2010

If you look at this form: [URL] you will see that when you click on the "add another upload box" button, instead of it adding another upload box, it is submitting the form for some reason. Relevant snippet of code below:



View 1 Replies View Related

How To Use <button Type=button>

May 22, 2011

I’m usually Using input type submit eg: <input type=“submit” name=“assign” value=“Assign”/>
and using this is no problem for me but now I want to use button eg:<button type=“button” class=“button” id=“deleteb”><div>Assign Student</div></button>
but don’t know how to used it or call it to my controller.this is my controller function

if($assign_student)//<input type="submit" name="assign" value="Assign"/>
if($maxMember->max_members > $countMember)


View 2 Replies View Related

<option> &

Mar 29, 2006

I have an array like the one below PHP Code:

1 => 'Apparal',

How can i get PHP to echo out an <option> tag for each value in that array. I want the key to be the value of the option, and the value to be what the option is.

<option value="key">Value</option>

View 1 Replies View Related


Feb 5, 2007

If I know the text of an option (or the value) how can I get the option position/number? For example:

<select name="numfontype">
<option value="AARVC___.TTF">Aardvark Cafe</option>
<option value="Abduction.ttf">Abduction</option>
<option value="Adventure.ttf">Adventure</option>
<option value="air_mitalic.ttf">Air Millhouse</option>

View 12 Replies View Related

Option Value

Sep 7, 2007

I'm tring to concat 2 columns from mysql. Lot and Unit. I have tried everything to get my code below to work.

$mysql= "select concat(lot,''-'',unit) as t from production where community= '$community' ";
$query = mysql_query($mysql);
echo "LotUnit ";
echo "<select name="t" size="1">
while ($row=mysql_fetch_array($query)) {
echo "<option value="".mysql_result($query,$i,"t").""></option>
echo "</select>

View 2 Replies View Related

Add Option Modifiers

Jun 20, 2002

I am working on trying to create an admin for a product catalog, the only problem i am having involves product modifiers such as the ability to add size and color to the product that can also increase the cost of the product.

I was wondering if anyone would know a really good way of going around to do this, the only way I can think of is having a product option table that would hold the value of the modifier plus the cost plus the product id that this references too plus its own special id.

View 1 Replies View Related

PHP GTK Option Questions

Apr 3, 2007

Before I invest more time in researching and testing I am curious if anyone knows for certain if a PHP_GTK application running on a Windows machine can communicate and interface with a remote database SECURELY?

My plan involves creating a support system which would be a standalone application on a Windows Workstation. This application would query data from a remote database SECURLY and then support personal would be able to modify, edit, etc. data from the PHP_GTK application which would in turn update data in the remote database, again securely.

Can a PHP_GTK application support this, security being the biggest concern?

View 1 Replies View Related

Readdir & Option Value

Jul 17, 2005

more or less that is my problem:

i'm making HTML <select><option> statement:

if ($dir = @opendir("/the/directory)) {
while($file = readdir($dir)) {

echo '<option value="'.$file.'">'.$file;

the number of options depends of number of files in directory.

When user chooses one of this files(he chooses an option) i want to know
what option he choosen.

View 2 Replies View Related

Option Values

Jul 23, 2000

From my experimentation there seems to be a difference when using values from an option value as apposed to an value by a check box etc. I can quite easily input data from a check box selection, but not an option value. Code:

View 2 Replies View Related

Remember Me Option

Jan 21, 2006

Any ideas on how to create a remember me option in a login box..?

View 4 Replies View Related

Put Attachments Option

Nov 2, 2006

how can i put a attachments option on my phpnuke forum i want people to be able to use attachments Mp3,wav.zip.pic.rar,and more.

what im doing a forum so people can battle Beats on the forum by puting attachments and people can download the beat or if it is posible to be no download youst click.

View 1 Replies View Related

Cannot Do A Fopen With A 'w' Option In PHP

Jul 2, 2006

Using Mac OSX, I am trying to write a file to my local disk (create one also) and It keeps failing. I open and read an existing file, but cannot create or write. Does it have something to do with 'safe mode'? I have tried turning it off with ini-set(safe_mode,"off") with no luck and no result either. Have been programming for 25 years, but only a couple weeks in PHP and I'm stumped.

View 1 Replies View Related

Select Option

Oct 19, 2006

I want to load textarea's value in drop-down box.
In first page, such form is existed.

<form name="form1" method="post" action="next.php">
<textarea name="dayList" Id = "dayList" cols=20

in text area there's one column of values.

in "next.php", put values of 'dayList' in select option. I made a code
by myself. However, as you see, it's just nonsense. How can I modify
this? Code:

View 1 Replies View Related

Add Formatting Option

Apr 20, 2007

I've developed this simple piece of script for my client so she can easy add news to her homepage from the admin Panel, I would like some advice on how i would go about adding some formatting options to the content in the textfield be, like bold, italic and linking tags etc. <html><head><title>Add News</title></head> . PHP Code:

<form action="" method="get">
<textarea name="newscontent"></textarea>
<input type="submit" name="Submit" value="Add"></form>


$Submit = $_GET['Submit'];

if(isset( $Submit )) {

View 1 Replies View Related

Option In Form

Jan 2, 2006

I have this HTML code

HTML Code:

<form method="POST" action="action.php">

<input type="submit" value="Address" name="B2" style="font-family: Verdana; font-size: 8pt; color: #FFFFFF; border: 1px solid #000000; background-color: #000000">

<input type="submit" value="Phone" name="B2" style="font-family: Verdana; font-size: 8pt; color: #FFFFFF; border: 1px solid #000000; background-color: #000000">


in action.php i want a code to run depending on which optoin was clicked ie: B! or B2, how can this be done?

View 2 Replies View Related

Go Back Option

May 11, 2006

I need a code in php to go to the back page and display the contents which were their. I've only a table in the back page which contains the data derived from database. I've the present code as:

<input type="reset" value="Go Back" onclick="resetstr()">

and at the top of the page i've added before <html> the below script. I know its not working.Plz help.

<script language="javascript">
function resetstr()

View 1 Replies View Related

With Select Option

Jun 1, 2007

i am developing simple site for php where i put onle selct box,I have to check the value from the select box and put it in the database.I am having problem that if a value is alrady selectd , if you want to select it agin i have to prompt up the message that value is already selected.

View 1 Replies View Related

Using A Variable In The <option> Tag

Sep 16, 2005

I have a variavle called $quart_code as well as $quart_nom. These two variables are called from a database. Now I use a form to display the values for those two variables for a specific entity in the database. I do this as follows:

echo "<option value="".$quart_code."">".$quart_nom."</option>";

I am using this same form to update the values of those two variables in the database table. The problem is that the quart_code field in the database gets updated with the value of the quart_nom field in the option tag. This is what I don't get especially since I set the value of the option tag to $quart_code.

View 3 Replies View Related

Right Option In Select Box

Jun 7, 2006

I've a small problem but I can't fix it. When I want to edit an article I click on the article and you get redirect to a new page where you can change te values (title, category, author, etc). The categories are in a select box and I want to, when you edit an article, that the right category from that article is selected.

<select name="category" class="category">
<?php $allCategories = getAllCategories();
foreach ($allCategories as $category)
<option value="<?=$category['CATEGORY'];?>"><?=$category['CATEGORY'];?></option>

This is the MySQL below (a part of it) when I edit a page.


View 3 Replies View Related

Empty Option

Oct 4, 2005

I use the following script to populate a drop down menu category menu in a form on my site:

<select name="relCatID">
$result_cat = mysql_query ("SELECT title, catID FROM $table ORDER BY title ASC");
if ($row_cat = mysql_fetch_array($result_cat)) {
do {
if ($catID == $relCatID){
<option value="<?=$row_cat["catID"]?>" SELECTED><?=$row_cat["title"]?></option>
} else {
<option value="<?=$row_cat["catID"]?>"><?=$row_cat["title"]?></option>.

View 2 Replies View Related

Specify Each Option At A Select Tag?

Oct 19, 2010

How to specify each option at a select tag?,using which attribute (name,id,....)?
and how to recieve it in the server script to detect which option is selected?

View 3 Replies View Related