self.request.GET[] with href HTML
<p>I need to have self.request.GET[] have the correct code for when the user clicks, based on what they click in the HTML.</p>

<p>Below is Main.py:</p>

<pre><code>import webapp2
from data import Fighter
from data import Data
from pages import Page
from pages import ContentPage


class MainHandler(webapp2.RequestHandler):
    def get(self):

        f = Fighter()
        d = Data()
        p = Page()
        c = ContentPage()

        if self.request.GET[1]:
            self.response.write(c.results(d.fighter_data[0].name, d.fighter_data[0].rank, d.fighter_data[0].age, d.fighter_data[0].hometown, d.fighter_data[0].fights_out_of, d.fighter_data[0].height, d.fighter_data[0].weight, d.fighter_data[0].reach, d.fighter_data[0].wins, d.fighter_data[0].loses, d.fighter_data[0].bio))
        else:
            self.response.write(p.page)

app = webapp2.WSGIApplication([
('/', MainHandler)
], debug=True)
</code></pre>

<p>Where if self.request.GET[1]: needs to work if ?fighter=1 is clicked</p>

<p>Pages.py below:</p>

<pre><code>class Page(object):
    def __init__(self):
        self.page = '''
        &lt;!doctype html&gt;
        &lt;html&gt;
        &lt;head&gt;
        &lt;meta charset="UTF-8"&gt;
        &lt;title&gt;Untitled Document&lt;/title&gt;
        &lt;/head&gt;

        &lt;body&gt;

        &lt;a href="?fighter=1"&gt;Flweight&lt;/a&gt;
        &lt;a href="?fighter=2"&gt;Bantamweight&lt;/a&gt;
        &lt;a href="?fighter=3"&gt;Featherweight&lt;/a&gt;
        &lt;a href="?fighter=4"&gt;Lightweight&lt;/a&gt;
        &lt;a href="?fighter=5"&gt;Welterweight&lt;/a&gt;

        &lt;/body&gt;
        &lt;/html&gt;'''

    def content(self):
        content_page = self.page  # set content page equal to page
        content_page = content_page.format(**locals())  # get locals
        return content_page  # return content_page


class ContentPage(object):
    def __init__(self):
        self.data_page = '''
        {name} {age} {rank} {hometown} {fights_out_of} {height} {weight} {reach} {wins} {loses} {bio}'''

    def results(self, name, age, rank, hometown, fights_out_of, height, weight, reach, wins, loses, bio):  # get stuff from page
        results_page = self.data_page  # set results page equal to data page
        results_page = results_page.format(**locals())  # get locals
        return results_page  # returns results_page
</code></pre>

<p>I appreciate any help. Thanks.</p>

<p>I have solved my own question. It's:</p>

<pre><code>        if self.request.GET:
            if self.request.GET['fighter']:
                self.response.write(c.results(d.fighter_data[0].name, d.fighter_data[0].rank, d.fighter_data[0].age, d.fighter_data[0].hometown, d.fighter_data[0].fights_out_of, d.fighter_data[0].height, d.fighter_data[0].weight, d.fighter_data[0].reach, d.fighter_data[0].wins, d.fighter_data[0].loses, d.fighter_data[0].bio))
            elif self.request.GET['fighter'] == 2:
                self.response.write(c.results(d.fighter_data[1].name, d.fighter_data[1].rank, d.fighter_data[1].age, d.fighter_data[1].hometown, d.fighter_data[1].fights_out_of, d.fighter_data[1].height, d.fighter_data[1].weight, d.fighter_data[1].reach, d.fighter_data[1].wins, d.fighter_data[1].loses, d.fighter_data[1].bio))
            elif self.request.GET['fighter'] == 3:
                self.response.write(c.results(f.name, f.age, f.rank, f.hometown, f.fights_out_of, f.height, f.weight, f.reach, f.wins, f.loses, f.bio))
            elif self.request.GET['fighter'] == 4:
                self.response.write(c.results(f.name, f.age, f.rank, f.hometown, f.fights_out_of, f.height, f.weight, f.reach, f.wins, f.loses, f.bio))
            elif self.request.GET['fighter'] == 5:
                self.response.write(c.results(f.name, f.age, f.rank, f.hometown, f.fights_out_of, f.height, f.weight, f.reach, f.wins, f.loses, f.bio))
        else:
            self.response.write(p.page)
</code></pre>

python