View previous topic :: View next topic |
Author |
Message |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Wed Jun 16, 2010 11:11 pm Post subject: Can anyone find this program/help me make it? |
|
|
You enter a number (let's say 112) and it redirects to
www.example.com/112.htm
|
|
Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Wed Jun 16, 2010 11:48 pm Post subject: |
|
|
Um you mean like in php?
It would be
text field = $tail;
<a href="example.com" + $tail;>Go</a>
|
|
Back to top |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Thu Jun 17, 2010 12:00 am Post subject: |
|
|
Code: | <?php
$num = htmlspecialchar($_POST['num']);
echo "<meta http-equiv=\"REFRESH\" content=\"0;url=http://example.com/".$num."\">";
?> | Just need to have a form a form like:
Code: | <form action="" method="POST">
<input type="text" name="num" /><br />
<input type="submit" value="Submit" /></form> |
_________________
|
|
Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 17, 2010 12:31 am Post subject: |
|
|
holy shittt;
I've never worked with PHP. This is what I've got so far.
Code: |
<?php
$num = htmlspecialchar($_POST['num']);
echo "<meta http-equiv=\"REFRESH\" content=\"0;url=http://www.serebii.net/pokedex-dp/".$num.".shtml">";
<form action="" method="POST">
<input type="text" name="num" /><br />
<input type="submit" value="Submit" /></form>
?>
|
It doesn't work. Whyyyy ;.;
|
|
Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Thu Jun 17, 2010 12:36 am Post subject: |
|
|
Code: | //this is html
<form action="" method="POST">
<input type="text" name="pokeput" /><br />
<input type="submit" value="Submit" /></form>
//this is php
<?php
$pokenum = htmlspecialchar($_POST[pokeput']);
echo "<meta http-equiv=\"REFRESH\" content=\"0;url=http://www.serebii.net/pokedex-dp/".$pokenum.".shtml">";
?> |
|
|
Back to top |
|
 |
Anarchy Expert Cheater
Reputation: 29
Joined: 15 Feb 2009 Posts: 104 Location: There.
|
Posted: Thu Jun 17, 2010 12:36 am Post subject: |
|
|
World is angry at you, hates you, some sort of god is mad, etc.
|
|
Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 17, 2010 12:37 am Post subject: |
|
|
Stone wrote: | Code: | //this is html
<form action="" method="POST">
<input type="text" name="pokeput" /><br />
<input type="submit" value="Submit" /></form>
//this is php
<?php
$pokenum = htmlspecialchar($_POST[pokeput']);
echo "<meta http-equiv=\"REFRESH\" content=\"0;url=http://www.serebii.net/pokedex-dp/".$pokenum.".shtml">";
?> |
| jesusfuck. I'm stupid.
|
|
Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Thu Jun 17, 2010 12:38 am Post subject: |
|
|
Sorrow wrote: | Stone wrote: | Code: | //this is html
<form action="" method="POST">
<input type="text" name="pokeput" /><br />
<input type="submit" value="Submit" /></form>
//this is php
<?php
$pokenum = htmlspecialchar($_POST[pokeput']);
echo "<meta http-equiv=\"REFRESH\" content=\"0;url=http://www.serebii.net/pokedex-dp/".$pokenum.".shtml">";
?> |
| jesusfuck. I'm stupid. |
Naw.
Happens to all of us.
|
|
Back to top |
|
 |
Anarchy Expert Cheater
Reputation: 29
Joined: 15 Feb 2009 Posts: 104 Location: There.
|
Posted: Thu Jun 17, 2010 12:38 am Post subject: |
|
|
Aname wrote: | World is angry at you, hates you, some sort of god is mad, etc. |
|
|
Back to top |
|
 |
:^) Grandmaster Cheater Supreme
Reputation: 37
Joined: 30 Jun 2008 Posts: 1062
|
Posted: Thu Jun 17, 2010 12:40 am Post subject: |
|
|
Aname wrote: | Aname wrote: | World is angry at you, hates you, some sort of god is mad, etc. |
|
|
|
Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 17, 2010 12:43 am Post subject: |
|
|
First time working with PHP, I feel very terrible
this is what I've got
Code: | <?php
$pokenum = htmlspecialchar($_POST[pokeput']);
echo "<meta http-equiv=\"REFRESH\" content=\"0;url=http://www.serebii.net/pokedex-dp/".$pokenum.".shtml">";
?>
<form action="" method="POST">
Pokemon Number: <input type="pokeput" name="Pokemon Number" />
<input type="submit" />
</form> |
|
|
Back to top |
|
 |
Gavin Moderator
Reputation: 114
Joined: 30 Apr 2007 Posts: 1069
|
Posted: Thu Jun 17, 2010 12:46 am Post subject: |
|
|
Or you could learn let's say a coding language, and input a search button and search the pokemon by number
|
|
Back to top |
|
 |
Moments Grandmaster Cheater Supreme
Reputation: 17
Joined: 20 Mar 2008 Posts: 1196
|
Posted: Thu Jun 17, 2010 12:47 am Post subject: |
|
|
Gavin wrote: | Or you could learn let's say a coding language, and input a search button and search the pokemon by number | It was just a small project; I'm probably not going to even continue it.
|
|
Back to top |
|
 |
Anarchy Expert Cheater
Reputation: 29
Joined: 15 Feb 2009 Posts: 104 Location: There.
|
Posted: Thu Jun 17, 2010 12:48 am Post subject: |
|
|
Sorrow wrote: | Gavin wrote: | Or you could learn let's say a coding language, and input a search button and search the pokemon by number | It was just a small project; I'm probably not going to even continue it. | All of a sudden, ninjas!
Ninjas everywhere!
|
|
Back to top |
|
 |
whisk Grandmaster Cheater
Reputation: 22
Joined: 04 Oct 2008 Posts: 590
|
Posted: Thu Jun 17, 2010 12:51 am Post subject: |
|
|
Aname wrote: | Sorrow wrote: | Gavin wrote: | Or you could learn let's say a coding language, and input a search button and search the pokemon by number | It was just a small project; I'm probably not going to even continue it. | All of a sudden, ninjas!
Ninjas everywhere! |
BOWL OF CEREAL.
|
|
Back to top |
|
 |
|