Help with my site!

Started by TheShinyMew January 18th, 2012 9:18 PM
  • 1312 views
  • 5 replies

TheShinyMew

Ravioli ravioli, give me the formuoli.

Non-binary
Unknown
Seen 3 Weeks Ago
Posted 4 Weeks Ago
122 posts
13 Years
I'm trying to do an HTML to launch an application that sends you a Pokémon, but I always got an error. Probably due to form action things.

Here's a code:
<form
action="<a href="http://mysteryvalley.bravehost.com/mvshayminget.html><span
style="font-weight: bold; font-family: Arial;">
Imput a password to get Mystery Valley Shaymin:</span><br>
<span style="font-family: Arial;">Password:</span>
<input name="Flowertown" maxlength="12"
type="password"><br>
<input value="Submit" type="submit">

I can't get it right...
~Welcome! Where's my land?~

Uecil

Unknown.
Seen 2 Days Ago
Posted May 7th, 2021
2,567 posts
13.5 Years
I'm trying to do an HTML to launch an application that sends you a Pokémon, but I always got an error. Probably due to form action things.

Here's a code:
<form
action="<a href="http://mysteryvalley.bravehost.com/mvshayminget.html><span
style="font-weight: bold; font-family: Arial;">
Imput a password to get Mystery Valley Shaymin:</span><br>
<span style="font-family: Arial;">Password:</span>
<input name="Flowertown" maxlength="12"
type="password"><br>
<input value="Submit" type="submit">

I can't get it right...
I'm not sure about this, for certain, but the submit action doesn't seem to be working. However, do you have a link or a print screen of where this may be?
EDIT: Also, the form action, which links to the page.. it leads to a 404 Error page.. :S



o



Tsutarja

Age 28
he / him
Florida
Seen 5 Hours Ago
Posted 14 Hours Ago
27,327 posts
13.2 Years


I'm not sure about this, for certain, but the submit action doesn't seem to be working. However, do you have a link or a print screen of where this may be?
Right, seems to be an error with the form action line. Try this code to see if it works:

<form
action="http://mysteryvalley.bravehost.com/mvshayminget.html" method="get"
style="font-weight: bold; font-family: Arial;">
Imput a password to get Mystery Valley Shaymin:</span><br>
<span style="font-family: Arial;">Password:</span>
<input name="Flowertown" maxlength="12"
type="password"><br>
<input value="Submit" type="submit">
Coincidentally, just the other day, I did my first ever form submission page in HTML. Very fun to work with once you get the general idea of how it works.

Petie

Age 34
Male
Colorado
Seen June 25th, 2022
Posted July 14th, 2020
152 posts
14.5 Years
<form method="get" action="mvshayminget.html">
  <span style="font-family: Arial, sans-serif; font-weight: bold;">Input a password to get Mystery Valley Shaymin:</span><br />
  <span style="font-family: Arial, sans-serif;">Password:</span>
  <input type="password" name="flowertown" maxlength="12" size="12" /><br />
  <input type="submit" value="Submit" />
</form>
That's the proper form for your password field but you should know a couple of things. First, try to use relative links when possible (I did so for the action of the form since these two pages are likely in the same directory). You don't have to specify the entire URL when he pages are being called from the same site.

Also, while this will successfully submit and take you to mvshayminget.html, you'd need code on that page to process the password or you'll just wind up making a fancy link. Something like PHP, or at least JavaScript, on your target page will be required to check the password before displaying the appropriate content if you would actually like that functionality. If you go the route of JavaScript, do be aware that the password would be visible in the source code where as using PHP, it wouldn't be.

Just a couple of things to take note of as you start to learn :)

TheShinyMew

Ravioli ravioli, give me the formuoli.

Non-binary
Unknown
Seen 3 Weeks Ago
Posted 4 Weeks Ago
122 posts
13 Years
I have a javascript to that. But the problem is, to the target of Arceus I was making, when I click Download Now, it'll take to the the distribution link without the prompting password. What did I do?

Here it is:
<script language="JavaScript">
function Pokepass2() {
var testV = 1;
var pass1 = prompt('STOP! Enter the password here!','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "SBF2012") {
alert('Thank you for that correction!');
window.open('http://pokegts.us/5thGen_DistributeLink.aspx?SHA1=7E58062FCF984924DF376354D68C8140483C7FF8');
break;
}
testV+=1;
var pass1 =
prompt('Incorrect! Try again later!','Password');
}
if (pass1!="password" & testV ==3) history.go(-1);
return " ";
}
</script>
<center>
<form><input value="Download Now!" onclick="Pokepass2()" type="button"></form>
~Welcome! Where's my land?~