Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8928439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:26:13+00:00 2026-06-15T08:26:13+00:00

My template is <form method=GET action=….> <input type=submit name=golfsite value=1net /> <input type=submit name=golfsite

  • 0

My template is

<form method="GET" action="....">
                    <input type="submit" name="golfsite" value="1net" />
                    <input type="submit" name="golfsite" value="Golfagora" />
                    <input type="submit" name="golfsite" value="Juchi" />
</form>

views.py is

def affiliate(request, golfsite=None):

    golfsite = golfsite or request.args.get('golfsite')


    ......

On debug mode console, if I type ‘golfsite’ to check what is golfsite, it returns u'1net' or u'Golfagora' or u'juchi'. What is happening? What is u, Why doesnt it return 1net or golfagora or juchi.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:26:14+00:00Added an answer on June 15, 2026 at 8:26 am

    You are getting Unicode strings, which is normal. This is not a problem. Django has decoded incoming form data to Python unicode strings based on the encoding used. This is normal behaviour.

    Please do read up on Python and Unicode in the Python Unicode HOWTO to avoid future confusion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I do have a search form. <form method=get id=searchform action=<?php bloginfo('siteurl');?>> <div class=search_bx1><input type=text
I have this: <form action='/ltsp' method='GET'> <label>Download Option:</label> <select name=''> <option name='download' value='download'>download</option> <option
I have this as template account_form.html <form action=/contact/ method=post> {% for field in form
I'm trying to display a form on a template, but I get a fantastic
template code <script type=text/template id=test-template> <section> <form id=<%= pid %>> <div class=row> <div class=span16>
I am new to django and have made a method:GET form with checkboxes/text boxes
I have an included object's form: <form method=post class=object_form id=event-core-form action={% url save_event_core_data event.id
I have two template files: one for the form (loginFormTemplate) and one for the
I'm using Contact Form 7 plugin in a WordPress template. I created the form
i have bought a template that have built in contact form problem is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.