OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Form Get Problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Form Get Problem
Page: [1]
 
 
Joey

 

Posts: 188
Joined: 5/15/2002
From:
Status: offline

 
Form Get Problem - 4/17/2009 15:12:31   
When i use get to post a form to another page i get the button showing up. How do i stop the button field from showing up?

Here is my code:
<form method="get" action="http://www.test web site.com">
	<input name="Text1" type="text" /><br />
	<input name="button" type="submit" value="Submit" /></form>


and here is the output:
http://www.test web site.com/?Text1=123&button=Submit
TexasWebDevelopers

 

Posts: 761
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Form Get Problem - 4/17/2009 16:55:34   
There are fundamental differences between using "GET" and "POST" in a form.
But in the simplest language GET means that the form data is encoded by a browser into a URL and should be use only to retrieve data. POST means the form data is to appear within a message body and is used for updating data, etc.
Getting data=GET
Passing data=POST
So what are you really trying to do here?

_____________________________

:)

Follow us on TWITTER

(in reply to Joey)
jeepless

 

Posts: 230
Joined: 12/20/2003
From: Smack in the middle of USA
Status: offline

 
RE: Form Get Problem - 4/17/2009 17:08:47   
In the line <input name="button" type="submit" value="Submit" />, try removing the name="button" part of it. So you would end up with:

<input type="submit" value="Submit" />



_____________________________

The problem with designing a system that's foolproof is that designers underestimate complete fools.

(in reply to TexasWebDevelopers)
Joey

 

Posts: 188
Joined: 5/15/2002
From:
Status: offline

 
RE: Form Get Problem - 4/17/2009 17:39:48   
Thanks jeepless that makes the string perfect!

(in reply to Joey)
BeTheBall

 

Posts: 6502
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Form Get Problem - 4/17/2009 23:00:06   

quote:

ORIGINAL: jeepless

In the line <input name="button" type="submit" value="Submit" />, try removing the name="button" part of it. So you would end up with:

<input type="submit" value="Submit" />




Hmmm. Learned something new today. That makes sense. Since a querystring is composed of name/value pairs, the taking away of the name prevents the pair from going into the querystring. Nice solution.


_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to jeepless)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Form Get Problem
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts