Hi guys, My first post here after reading some very helpful responses over the last few months. I'm having trouble passing radio button values to a results page and wondered if anyone would be able to spot anything wrong with the following code? Any ideas are very much appreciated as this is the first time I've used PHP forms with radio buttons... Here's the code section for the form page: if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $phone = $_POST['phone']; $city = $_POST['city']; $interest = $_POST['interest']; $hear = $_POST['hear']; $radioq1 = $_POST['radioq1']; $radioq2 = $_POST['radioq2']; $radioq3 = $_POST['radioq3']; $radioq4 …

Member Avatar
Member Avatar
+0 forum 4

Visual Basic 2008 Hey i was wondering if it was possilbe to change the colour of text in a textbox through a button in a simple text editor that i am working on any help would be appreciated. cheers

Member Avatar
Member Avatar
+0 forum 2

Im looking to Delete a row of information in my datagrid, but also from my database. im not even really sure where to start. I want to use a button to do this. so that when i highlight a row, then click the button it brings up a message box that asks " are you sure you want to delete row/s?" and then when you click yes it is deleted from both the grid and the database.

Member Avatar
Member Avatar
+0 forum 12

Hello This is my first post on this forum. I have found that this place seems to have lot of knowledgeable people when it comes to Python. Anyway I'm quite new to GUI programming and I'm not exactly having a huge problem but I'm more interested about how to make my code prettier and proper. Issue is that I have defined this class where I have three buttons that all call the same function/subroutine/def but with each button I would like to pass different variable.. in this case a number. I found a working solution and I have also tried …

Member Avatar
Member Avatar
+0 forum 4

Hi, would u please help me with the buttons i use on my vb.net forms. I want a way in which if i drag my mouse onto a particular button it would increase its size and if i click onto it, it can respond to the codes. May be like i want it too look like those Macintosh laptop icons, whereby if u put my mouse on it, it increases its size. Is there any way like that, please help me with the steps and codes if possible thnks.

Member Avatar
Member Avatar
+0 forum 5

In an html form, I want a certain field to be invisible when "no" is checked and visible when "yes" is checked. This is my code: html: [code] <form action="pageName.html" method="post" name="formName"> Question? <input name="radioBool" type="radio" value="1" onchange="dispField('textInput');" />yes <input name="radioBool" type="radio" value="0" onchange="dispField('textInput');" />no <br /> <span id="textInput" style="display:none"> Specify: <input name="specify" type="text" /> </span> </form> [/code] javascript: [code] function dispField(htmlID) { if (document.formName.radioBool[0].checked == true) { document.getElementById(htmlID).style.display = ""; } else { document.getElementById(htmlID).style.display = "none"; } } [/code] This seems to work perfectly across all browsers [I]except[/I] for IE (latest version). In IE the only problem is that …

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm trying to hide 5 to 12 buttons on a form until a screenshot is saved to the clipboard. I have it set right now so the user clicks a button(btnSavePDF) and then whichever buttons are visible are made not visible. But I haven't a clue how to restore just those buttons. I'm trying to avoid restoring them all unless they were all originally visible. Please help. Here is the code I have so far: [CODE] Private Sub btnSavePDF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSavePDF.Click Try If btnChange1.Visible = True Then btnChange1.Visible = False If btnChange2.Visible …

Member Avatar
Member Avatar
+0 forum 4

hi! I have a form to add content in database(addcontent.php) and one file which shows the content(content.php).Database has id,title,content columns. IS it possible to make the content.php to "$_GET" the id's from the database and show them on the page as : content.php?id=1 And other thing. i have buttons in content.php which i want to make them dinamicaly working (hyperlink to sent to "content.php?id=2" and etc.) All help will be appresiated :) Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi, I wish to create a very simple GUI for my C++ code I have written a simple C++ program using Microsoft Visual C++ Express. The details of the program functionality are not really important. Currently the user enters a number (1-5) on the command line and presses enter. A few lines of C++ code are executed depending on which number is entered. It is a fairly simple program. I would really like to make a simple GUI for this program. It would just need to be 5 buttons. If the user clicked on a button, the corresponding code would …

Member Avatar
Member Avatar
+0 forum 5

Hello everyone, Confused with the title of the thread? Well, I guess that`s because my brain is completly fried from trying to find the correct way to do something that seems impossible without your help. Here is the story, I have 8 questions, each containing 5 answers. I have a table at the bottom of the page with 8 cells (2 rows, 4 columns). The idea is that, when somebody answers the questions and click on the submit button, each one of the cells in the table show a different image relevant to the answers and this for every different …

Member Avatar
+0 forum 0

Hii, The problem statement i am referring to is: Buttons Each cell of an N x N grid is either a 0 or a 1. You are given two such N x N grids, the initial grid and the final grid. There is a button against each row and each column of the initial N x N grid. Pressing a row-button toggles the values of all the cells in that row, and pressing a column-button toggles the values of all the cells in that column. You are required to find the minimum number of button presses required to transform the …

Member Avatar
+0 forum 0

Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JLabel; public class GUI extends JFrame { private GridBagLayout layout; private GridBagConstraints constraints; private JButton upload; private JButton input; private JButton edit; private JButton clear; private JButton save; private JButton sunflower; private JButton type; private JButton mini; private JButton saveMini; private …

Member Avatar
Member Avatar
+0 forum 5

Hi there, I would like to be able to change a button during the runtime of a gui. I can change the value no problem (set Label) but I need to change the size of the button as well. I have managed to change it with SetSize((120, 30)) but then the button scoots under the next button along. I would like to change the self.okay_button's value from "OK" to "Edit Birdlist" and it will need to be much wider. I have tried to use Show/Hide, but then the new button gets put right up at the top of the gui. …

Member Avatar
Member Avatar
+0 forum 3

I got a button array of 40 buttons And i handle all the button events in 1 sub . But i need to know what button is pressed. Can someone help me ? [CODE] Private bttonArray(41) As Button Public Sub Hoofdscherm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load REM place the Buttons in a array bttonArray(1) = Button1 bttonArray(2) = Button2 bttonArray(3) = Button3 bttonArray(4) = Button4 bttonArray(5) = Button5 bttonArray(6) = Button6 bttonArray(7) = Button7 bttonArray(8) = Button8 bttonArray(9) = Button9 bttonArray(10) = Button10 bttonArray(11) = Button11 bttonArray(12) = Button12 bttonArray(13) = Button13 bttonArray(14) = Button14 bttonArray(15) …

Member Avatar
Member Avatar
+0 forum 7

Hi, i have a little problem, i dynamic generate a buttons in two columns [CODE=c#] for(i=0;i<=10;i++){ Button prz = new Button(); prz.Location = new Point(12,40+i*25); prz.Name = "But"+(p-i)+"up"; prz.Image = Image.FromFile(picture_from_file_1); prz.ClientSize = new Size(20,20); prz.Click += new System.EventHandler(this.Button_Click_Code); Controls.Add(prz); Button prz1 = new Button(); prz1.Location = new Point(45, 40 + i * 25); prz1.Name = "But" + (p - i) + "down"; prz1.Image = Image.FromFile(picture_from_file_2); prz1.ClientSize = new Size(20, 20); prz1.Click += new System.EventHandler(this.Button_Click_Code); Controls.Add(prz1); } [/CODE] and [CODE=c#] private void Button_Click_Code(object sender, EventArgs e) { Button myBut = (Button)sender; switch (myBut.Name) { case "But0up": break; case "But0down": break; …

Member Avatar
Member Avatar
+0 forum 7

hi everyone, im trying to create a little form that would simply keep the count of people that have voted and the score of the votes . here is my form in static html [CODE]<form name = "contestants" method="POST"> <font size = "3" face="Arial" color="#dddddd"> <input type="radio" name ="contestant" value ="MissFrank">MissFrank<br> <input type="radio" name ="contestant" value ="KandyRain">KandyRain<br> <input type="radio" name ="contestant" value ="Jhon and Edward">Jhon and Edward<br> <input type="radio" name ="contestant" value="Lloyd Daniels">Lloyd Daniels<br> <input type="radio" name ="contestant" value="Joseph McElderry">Joseph McElderry</br> <input type="radio" name ="contestant" value="Rikki Loney">Rikki Loney<br> <input type="radio" name="contestant" value="Lucie Jones">Lucie Jones<br> <input type="radio" name="contestant" value="Stacey Solomon">Stacey Solomon<br> …

Member Avatar
Member Avatar
+0 forum 5

I have two form. Form 1 and Form 2 In form 1, i have a few textbox and and combo box. and BTNOk [to save] and BTNCancel[when BTNCancel is click, user are prompt whether to save file if there is changes in entry] Form 2 is the file where BTNCancel is clicked. Display: Do you want to save changes to your setting? BTNYES,BTNNO, BTNCANCEL. QUESTION When I clicked BTNYES in form 2 how can I call BTNOK in form 1 so that it can run the event handler in form 1 BTNOK another question. any idea of how to do …

Member Avatar
Member Avatar
+0 forum 8

How do you set or adjust opacity of controls during runtime? (buttons/textbox/etc) I've tried this [CODE=vb] Public Sub setOpacity(ByVal opacity As Integer) Me.BackColor = Color.FromArgb(opacity, 255, 255, 255) End Sub [/CODE] But error returns that it controls does not support opacity. [B]I want my controls to load on runtime with fade-in effects.[/B] Any links to any tutorial?

Member Avatar
Member Avatar
+0 forum 3

The End.