|
Answer» For example: I type:
Username: Bannana97 Password: XXXXXXXX Email: [emailprotected] SUBMIT
How do I make the submit BUTTON GO to ANOTHER link WHILE carrying the information to another spot.
Another example: I type for my new website:
Name: ClubBannana97 URL: http://www.clubbannana97.com/ SUBMIT
How do I make it go to a page where it says this:
You have just created a website!</br>
website information:
Name: The Name I entered
URL: the URL I entered
??You would need to use PHP or ASP for that.
Try the following:
Page 1, where you enter the information: Code: [Select]<?php
echo" <html>
<head> <TITLE>MyWebsite</title> </head>
<body> <formaction='page2.php'method='post'> Name:<inputtype='text'name='name'id='name'/> URL:<inputtype='text'name='url'id='url'/> <inputtype='submit'value='Submit'/> </form> </body>
</html>";
?>
And for "page2.php": Code: [Select]<?php
$name=$_REQUEST['name']; $url=$_REQUEST['url'];
echo"<html>
<head> <title>Page2</title> </head>
<body> <b>Youhavejustcreatedawebsite!</b><br/> Websiteinformation:<br/> Name:".$name."<br/> URL:".$url." </body>
</html>";
?>
That should work.... You don't exactly need a server side scripting LANGUAGE for this, if the server the user is using doesn't provide that functionality, they could always use HTML and Javascript...
Take a look > Here <, that should help.Yes, but nearly all servers now support PHP or ASP so that won't be a problem.You are right about that, I was just merely saying that if the user's web server did not support any server side scripting languages, than it would still be possible. And you can also use ASP.NET, CFM, JSP, Tcl, Perl, or Python as well, if the web server supports them...Quote from: fffreak on December 29, 2008, 03:46:16 PM Take a look > Here <, that should help.
I missed that. Very interesting.
|