python tkinter radiobutton change with buttonCalling an external command in PythonWhat are metaclasses in Python?Finding the index of an item given a list containing it in PythonWhat is the difference between Python's list methods append and extend?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?How can I know which radio button is selected via jQuery?Does Python have a string 'contains' substring method?
Is future tense in English really a myth?
Book/story which features a mental link to a prophet
How do you say "to hell with everything" in French?
Leaving the USA
Why does 8 bit truecolor use only 2 bits for blue?
What quests do you need to stop at before you make an enemy of a faction for each faction?
k times Fold with 3 changing extra variables
Is storing sensitive data in files instead of a database safe?
Project Euler Problem 45
Male viewpoint in an erotic novel
Cube stereo 150 race "do not clamp" warning
Can the leading note resolve down?
Bioluminescent microorganisms in everything
Python reimplementation of Lost In Space by Tim Hartnell
Why do opposition parties not want an election?
How to best explain that you are taking pictures in a space for practice reasons?
What can we do about our 9-month-old putting fingers down his throat?
Is it right to use the ideas of non-winning designers in a design contest?
Why has Marx's "Das Kapital" been translated to "Capital" in English and not "The Capital"
Why did Boris Johnson call for new elections?
Draw the ☣ (Biohazard Symbol)
Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?
Did the US Climate Reference Network Show No New Warming Since 2005 in the US?
Word for something that used to be popular but not anymore
python tkinter radiobutton change with button
Calling an external command in PythonWhat are metaclasses in Python?Finding the index of an item given a list containing it in PythonWhat is the difference between Python's list methods append and extend?How can I safely create a nested directory?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?How can I know which radio button is selected via jQuery?Does Python have a string 'contains' substring method?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
how to use button function change Radiobutton in tkinter?press the button and
then change Radiobuttons' text value. This is a question-and-answer game. The question bank is stored in sqlite3, press the button'next', Radiobuttons get new answers and Label get new qusetion.
import sqlite3
import tkinter as tk
import tkinter.messagebox
window=tk.Tk()
window.title('Python Qusz game')
window.geometry('400x400')
v=tk.StringVar()
v.set(1)
score=0
num=0
conn = sqlite3.connect('test.db')
c=conn.cursor()
c.execute('''CREATE TABLE IF NOT EXISTS COMPANY
(QUESTION TEXT NOT NULL,
ANSWER_A TEXT NOT NULL,
ANSWER_B TEXT NOT NULL,
ANSWER_C TEXT,
ANSWER_D TEXT,
RIGHT_ANSWER TEXT);''')
c = conn.cursor()
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_1','ans_1','ans_2','ans_3','ans_4','right_ans1')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_2','ans_1','ans_2','ans_3','ans_4','right_ans2')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_3','ans_1','ans_2','ans_3','ans_4','right_ans3')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_4','ans_1','ans_2','ans_3','ans_4','right_ans4')")
cursor=c.execute("select QUESTION, ANSWER_A, ANSWER_B, ANSWER_C, ANSWER_D, RIGHT_ANSWER from COMPANY")
value=cursor.fetchall()
var=tk.StringVar()
var.set(value[0][0])
l1=tk.Label(window,textvariable=var)
l1.pack()
def next_and_judge():
global score
global num
r1 = tk.Radiobutton(window, text=value[num][num+1], variable=v, value=1)
r1.pack()
r2 = tk.Radiobutton(window, text=value[num][num+2], variable=v, value=2)
r2.pack()
r3 = tk.Radiobutton(window, text=value[num][num+3], variable=v, value=3)
r3.pack()
r4 = tk.Radiobutton(window, text=value[num][num+4], variable=v, value=4)
r4.pack()
num=num+1
if var.get()==value[num-1][5]:
score=10+score
b1=tk.Button(window,text='next',command=next_and_judge)
b1.pack()
def sum():
tkinter.messagebox.showinfo(title='END',message=str(score))
b2=tk.Button(window,text='finish')
b2.pack()
conn.commit()
print('operation done successfully')
conn.close()
window.mainloop()
use sqlite3
python tkinter radio-button
add a comment |
how to use button function change Radiobutton in tkinter?press the button and
then change Radiobuttons' text value. This is a question-and-answer game. The question bank is stored in sqlite3, press the button'next', Radiobuttons get new answers and Label get new qusetion.
import sqlite3
import tkinter as tk
import tkinter.messagebox
window=tk.Tk()
window.title('Python Qusz game')
window.geometry('400x400')
v=tk.StringVar()
v.set(1)
score=0
num=0
conn = sqlite3.connect('test.db')
c=conn.cursor()
c.execute('''CREATE TABLE IF NOT EXISTS COMPANY
(QUESTION TEXT NOT NULL,
ANSWER_A TEXT NOT NULL,
ANSWER_B TEXT NOT NULL,
ANSWER_C TEXT,
ANSWER_D TEXT,
RIGHT_ANSWER TEXT);''')
c = conn.cursor()
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_1','ans_1','ans_2','ans_3','ans_4','right_ans1')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_2','ans_1','ans_2','ans_3','ans_4','right_ans2')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_3','ans_1','ans_2','ans_3','ans_4','right_ans3')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_4','ans_1','ans_2','ans_3','ans_4','right_ans4')")
cursor=c.execute("select QUESTION, ANSWER_A, ANSWER_B, ANSWER_C, ANSWER_D, RIGHT_ANSWER from COMPANY")
value=cursor.fetchall()
var=tk.StringVar()
var.set(value[0][0])
l1=tk.Label(window,textvariable=var)
l1.pack()
def next_and_judge():
global score
global num
r1 = tk.Radiobutton(window, text=value[num][num+1], variable=v, value=1)
r1.pack()
r2 = tk.Radiobutton(window, text=value[num][num+2], variable=v, value=2)
r2.pack()
r3 = tk.Radiobutton(window, text=value[num][num+3], variable=v, value=3)
r3.pack()
r4 = tk.Radiobutton(window, text=value[num][num+4], variable=v, value=4)
r4.pack()
num=num+1
if var.get()==value[num-1][5]:
score=10+score
b1=tk.Button(window,text='next',command=next_and_judge)
b1.pack()
def sum():
tkinter.messagebox.showinfo(title='END',message=str(score))
b2=tk.Button(window,text='finish')
b2.pack()
conn.commit()
print('operation done successfully')
conn.close()
window.mainloop()
use sqlite3
python tkinter radio-button
What arevalueandvar? Add them to your code
– Alderven
Mar 28 at 5:38
added value and var
– ZhuRunzhe
Mar 28 at 6:34
add a comment |
how to use button function change Radiobutton in tkinter?press the button and
then change Radiobuttons' text value. This is a question-and-answer game. The question bank is stored in sqlite3, press the button'next', Radiobuttons get new answers and Label get new qusetion.
import sqlite3
import tkinter as tk
import tkinter.messagebox
window=tk.Tk()
window.title('Python Qusz game')
window.geometry('400x400')
v=tk.StringVar()
v.set(1)
score=0
num=0
conn = sqlite3.connect('test.db')
c=conn.cursor()
c.execute('''CREATE TABLE IF NOT EXISTS COMPANY
(QUESTION TEXT NOT NULL,
ANSWER_A TEXT NOT NULL,
ANSWER_B TEXT NOT NULL,
ANSWER_C TEXT,
ANSWER_D TEXT,
RIGHT_ANSWER TEXT);''')
c = conn.cursor()
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_1','ans_1','ans_2','ans_3','ans_4','right_ans1')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_2','ans_1','ans_2','ans_3','ans_4','right_ans2')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_3','ans_1','ans_2','ans_3','ans_4','right_ans3')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_4','ans_1','ans_2','ans_3','ans_4','right_ans4')")
cursor=c.execute("select QUESTION, ANSWER_A, ANSWER_B, ANSWER_C, ANSWER_D, RIGHT_ANSWER from COMPANY")
value=cursor.fetchall()
var=tk.StringVar()
var.set(value[0][0])
l1=tk.Label(window,textvariable=var)
l1.pack()
def next_and_judge():
global score
global num
r1 = tk.Radiobutton(window, text=value[num][num+1], variable=v, value=1)
r1.pack()
r2 = tk.Radiobutton(window, text=value[num][num+2], variable=v, value=2)
r2.pack()
r3 = tk.Radiobutton(window, text=value[num][num+3], variable=v, value=3)
r3.pack()
r4 = tk.Radiobutton(window, text=value[num][num+4], variable=v, value=4)
r4.pack()
num=num+1
if var.get()==value[num-1][5]:
score=10+score
b1=tk.Button(window,text='next',command=next_and_judge)
b1.pack()
def sum():
tkinter.messagebox.showinfo(title='END',message=str(score))
b2=tk.Button(window,text='finish')
b2.pack()
conn.commit()
print('operation done successfully')
conn.close()
window.mainloop()
use sqlite3
python tkinter radio-button
how to use button function change Radiobutton in tkinter?press the button and
then change Radiobuttons' text value. This is a question-and-answer game. The question bank is stored in sqlite3, press the button'next', Radiobuttons get new answers and Label get new qusetion.
import sqlite3
import tkinter as tk
import tkinter.messagebox
window=tk.Tk()
window.title('Python Qusz game')
window.geometry('400x400')
v=tk.StringVar()
v.set(1)
score=0
num=0
conn = sqlite3.connect('test.db')
c=conn.cursor()
c.execute('''CREATE TABLE IF NOT EXISTS COMPANY
(QUESTION TEXT NOT NULL,
ANSWER_A TEXT NOT NULL,
ANSWER_B TEXT NOT NULL,
ANSWER_C TEXT,
ANSWER_D TEXT,
RIGHT_ANSWER TEXT);''')
c = conn.cursor()
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_1','ans_1','ans_2','ans_3','ans_4','right_ans1')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_2','ans_1','ans_2','ans_3','ans_4','right_ans2')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_3','ans_1','ans_2','ans_3','ans_4','right_ans3')")
c.execute("INSERT INTO COMPANY (QUESTION,ANSWER_A,ANSWER_B,ANSWER_C,ANSWER_D,RIGHT_ANSWER)
VALUES ('qus_4','ans_1','ans_2','ans_3','ans_4','right_ans4')")
cursor=c.execute("select QUESTION, ANSWER_A, ANSWER_B, ANSWER_C, ANSWER_D, RIGHT_ANSWER from COMPANY")
value=cursor.fetchall()
var=tk.StringVar()
var.set(value[0][0])
l1=tk.Label(window,textvariable=var)
l1.pack()
def next_and_judge():
global score
global num
r1 = tk.Radiobutton(window, text=value[num][num+1], variable=v, value=1)
r1.pack()
r2 = tk.Radiobutton(window, text=value[num][num+2], variable=v, value=2)
r2.pack()
r3 = tk.Radiobutton(window, text=value[num][num+3], variable=v, value=3)
r3.pack()
r4 = tk.Radiobutton(window, text=value[num][num+4], variable=v, value=4)
r4.pack()
num=num+1
if var.get()==value[num-1][5]:
score=10+score
b1=tk.Button(window,text='next',command=next_and_judge)
b1.pack()
def sum():
tkinter.messagebox.showinfo(title='END',message=str(score))
b2=tk.Button(window,text='finish')
b2.pack()
conn.commit()
print('operation done successfully')
conn.close()
window.mainloop()
use sqlite3
python tkinter radio-button
python tkinter radio-button
edited Mar 28 at 6:33
ZhuRunzhe
asked Mar 28 at 5:29
ZhuRunzheZhuRunzhe
32 bronze badges
32 bronze badges
What arevalueandvar? Add them to your code
– Alderven
Mar 28 at 5:38
added value and var
– ZhuRunzhe
Mar 28 at 6:34
add a comment |
What arevalueandvar? Add them to your code
– Alderven
Mar 28 at 5:38
added value and var
– ZhuRunzhe
Mar 28 at 6:34
What are
value and var? Add them to your code– Alderven
Mar 28 at 5:38
What are
value and var? Add them to your code– Alderven
Mar 28 at 5:38
added value and var
– ZhuRunzhe
Mar 28 at 6:34
added value and var
– ZhuRunzhe
Mar 28 at 6:34
add a comment |
1 Answer
1
active
oldest
votes
Instead of creating the Radiobuttons on every click of next, you can just change the text value of these buttons to show new answers.
Here is one way of doing it. This code will create the radiobuttons with answers of first question when pressed start, and keep updating questions and answers when pressed next:
var=tk.StringVar()
var.set('Click start')
l1=tk.Label(window,textvariable=var)
l1.pack()
radio_buttons = []
def show_first(radio_buttons, b1):
global num, radio_buttons, var
for idx in range(1, 5):
radio_buttons.append(tk.Radiobutton(window, text=value[num][num+idx], variable=v, value=idx))
radio_buttons[-1].pack()
var.set(value[0][0])
b1.config(text='next', command=lambda: next_and_judge(radio_buttons))
def next_and_judge(radio_buttons):
global num, score, value, var
if var.get()==value[num][5]:
score+=10
num=num+1
for idx in range(1, 5):
radio_buttons[idx-1].config(text=value[num][num+idx])
var.set(value[num][num])
b1=tk.Button(window,text='start')
b1.config(command=lambda: show_first(radio_buttons,b1))
b1.pack()
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390728%2fpython-tkinter-radiobutton-change-with-button%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Instead of creating the Radiobuttons on every click of next, you can just change the text value of these buttons to show new answers.
Here is one way of doing it. This code will create the radiobuttons with answers of first question when pressed start, and keep updating questions and answers when pressed next:
var=tk.StringVar()
var.set('Click start')
l1=tk.Label(window,textvariable=var)
l1.pack()
radio_buttons = []
def show_first(radio_buttons, b1):
global num, radio_buttons, var
for idx in range(1, 5):
radio_buttons.append(tk.Radiobutton(window, text=value[num][num+idx], variable=v, value=idx))
radio_buttons[-1].pack()
var.set(value[0][0])
b1.config(text='next', command=lambda: next_and_judge(radio_buttons))
def next_and_judge(radio_buttons):
global num, score, value, var
if var.get()==value[num][5]:
score+=10
num=num+1
for idx in range(1, 5):
radio_buttons[idx-1].config(text=value[num][num+idx])
var.set(value[num][num])
b1=tk.Button(window,text='start')
b1.config(command=lambda: show_first(radio_buttons,b1))
b1.pack()
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
add a comment |
Instead of creating the Radiobuttons on every click of next, you can just change the text value of these buttons to show new answers.
Here is one way of doing it. This code will create the radiobuttons with answers of first question when pressed start, and keep updating questions and answers when pressed next:
var=tk.StringVar()
var.set('Click start')
l1=tk.Label(window,textvariable=var)
l1.pack()
radio_buttons = []
def show_first(radio_buttons, b1):
global num, radio_buttons, var
for idx in range(1, 5):
radio_buttons.append(tk.Radiobutton(window, text=value[num][num+idx], variable=v, value=idx))
radio_buttons[-1].pack()
var.set(value[0][0])
b1.config(text='next', command=lambda: next_and_judge(radio_buttons))
def next_and_judge(radio_buttons):
global num, score, value, var
if var.get()==value[num][5]:
score+=10
num=num+1
for idx in range(1, 5):
radio_buttons[idx-1].config(text=value[num][num+idx])
var.set(value[num][num])
b1=tk.Button(window,text='start')
b1.config(command=lambda: show_first(radio_buttons,b1))
b1.pack()
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
add a comment |
Instead of creating the Radiobuttons on every click of next, you can just change the text value of these buttons to show new answers.
Here is one way of doing it. This code will create the radiobuttons with answers of first question when pressed start, and keep updating questions and answers when pressed next:
var=tk.StringVar()
var.set('Click start')
l1=tk.Label(window,textvariable=var)
l1.pack()
radio_buttons = []
def show_first(radio_buttons, b1):
global num, radio_buttons, var
for idx in range(1, 5):
radio_buttons.append(tk.Radiobutton(window, text=value[num][num+idx], variable=v, value=idx))
radio_buttons[-1].pack()
var.set(value[0][0])
b1.config(text='next', command=lambda: next_and_judge(radio_buttons))
def next_and_judge(radio_buttons):
global num, score, value, var
if var.get()==value[num][5]:
score+=10
num=num+1
for idx in range(1, 5):
radio_buttons[idx-1].config(text=value[num][num+idx])
var.set(value[num][num])
b1=tk.Button(window,text='start')
b1.config(command=lambda: show_first(radio_buttons,b1))
b1.pack()
Instead of creating the Radiobuttons on every click of next, you can just change the text value of these buttons to show new answers.
Here is one way of doing it. This code will create the radiobuttons with answers of first question when pressed start, and keep updating questions and answers when pressed next:
var=tk.StringVar()
var.set('Click start')
l1=tk.Label(window,textvariable=var)
l1.pack()
radio_buttons = []
def show_first(radio_buttons, b1):
global num, radio_buttons, var
for idx in range(1, 5):
radio_buttons.append(tk.Radiobutton(window, text=value[num][num+idx], variable=v, value=idx))
radio_buttons[-1].pack()
var.set(value[0][0])
b1.config(text='next', command=lambda: next_and_judge(radio_buttons))
def next_and_judge(radio_buttons):
global num, score, value, var
if var.get()==value[num][5]:
score+=10
num=num+1
for idx in range(1, 5):
radio_buttons[idx-1].config(text=value[num][num+idx])
var.set(value[num][num])
b1=tk.Button(window,text='start')
b1.config(command=lambda: show_first(radio_buttons,b1))
b1.pack()
answered Mar 28 at 7:14
KamalKamal
1,5601 gold badge6 silver badges20 bronze badges
1,5601 gold badge6 silver badges20 bronze badges
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
add a comment |
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
smart idea,I took the wrong way before :)
– ZhuRunzhe
Mar 28 at 11:08
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390728%2fpython-tkinter-radiobutton-change-with-button%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What are
valueandvar? Add them to your code– Alderven
Mar 28 at 5:38
added value and var
– ZhuRunzhe
Mar 28 at 6:34