Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 5th, 2005, 4:14 PM   #11
dayglowdave
Newbie
 
dayglowdave's Avatar
 
Join Date: Apr 2005
Location: Kansas
Posts: 22
Rep Power: 0 dayglowdave is on a distinguished road
thanks, makes sense
dayglowdave is offline   Reply With Quote
Old Apr 6th, 2005, 8:05 PM   #12
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
get puts the values into the query string which means that a cracker could get some of the form data and the varible names and create a form to add false data to what ever your form is doing.

Post doesn't send them through the query string, thus not allowing the cracker to see the varible names or the data.
No. If anything, POST lulls the user into a false sense of security. The POST data is just as visible to any man-in-the-middle attacks by crackers or the like. I mean, crackers don't normally peer over your shoulder, trying to get a glimpse of that URL in the box.
GET data is stored in the Location part of the packet's header.
POST data is stored in the packet's body.
So both easily accessible.

GET has two major problems, however:
- Limit on the amount of data that can be sent (2k bytes on IE, for example)
- Non-ascii issues.

Use both at the right times. The right times being when the HTML spec recommends they should be used - GET for things that make no lasting change to the state of the world (e.g a search), POST for things that do (e.g something that modifies a database or modifies a file on the server).
Cerulean is offline   Reply With Quote
Old Apr 8th, 2005, 10:05 AM   #13
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 577
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
How can i automaticly link one page to another? An example would be the page that comes up after u log in.
crawforddavid2006 is offline   Reply With Quote
Old Apr 8th, 2005, 10:26 AM   #14
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Forward a webpage? If you're using server side you can send a Location header to point to the new webpage before anything text gets written to the webpage (so in one of the first lines)
PHP example:
header("Location: new_webpage.htm")
Python/CGI example:
print "Location: new_webpage.htm"
If you're on the client side you can do a meta refresh or a JavaScript refresh.
Here's the JavaScript example:
<script type="text/javascript" language="javascript">
window.location = "new_webpage.htm";
</script>
Cerulean is offline   Reply With Quote
Old Apr 8th, 2005, 12:39 PM   #15
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 577
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
If i am using Microsoft FrontPage what would the code be? and also where would i place it after the <head> or before it?
crawforddavid2006 is offline   Reply With Quote
Old Apr 8th, 2005, 6:14 PM   #16
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Well, my dislike for HTML generators is almost preventing me from answering :p, but the one you want to use is the JavaScript example.
Just place it straight after your head tag, yes.
Cerulean is offline   Reply With Quote
Old Apr 11th, 2005, 9:35 AM   #17
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 577
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
I keep getting a "Cannot find server error" should i put all of the pages in the same folder?
crawforddavid2006 is offline   Reply With Quote
Old Apr 11th, 2005, 9:41 AM   #18
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 577
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
This is my code

<html>
  <head>
   <script type="text/javascript" language="JavaScript">
   window.location = "H:\Web Page Design\My Favorite Games\HomePage.htm"
   </script>
  <title>To My Favorite Games</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
  1">
 </head>

</body>
</html>
crawforddavid2006 is offline   Reply With Quote
Old Apr 11th, 2005, 10:31 AM   #19
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
<html>
  <head>
   <script type="text/javascript" language="JavaScript">
   window.location = "H:\\Web Page Design\\My Favorite Games\\HomePage.htm"
   </script>
  <title>To My Favorite Games</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
  1">
 </head>

</body>
</html>

I'd strongly suggest that if you want other to see it that you put it on a server and not on your computer. Nobody is going to be able to see that but you...
__________________

tempest is offline   Reply With Quote
Old Apr 12th, 2005, 9:31 AM   #20
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 577
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
This web page is for a class in school and i have to view it on my computer. Do I need to have all of the pages in one folder because i am combining 2 projects and they are in seperate folders.
crawforddavid2006 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC