SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Page loading as "Submitted"
-
Oct 13, 2009, 19:24 #1
Page loading as "Submitted"
I have a page (i.e. "PAGE 1") with an HTML Form that contains an "Add To Cart" button.
After clicking on the button, I am taken to another page (i.e. "PAGE 2") that also contains an HTML Form.
However, PAGE 2 is loading up as "submitted" before I do anything?!
How is that possible???
Amy
-
Oct 13, 2009, 19:43 #2
- Join Date
- Sep 2002
- Location
- Los Angeles
- Posts
- 1,709
- Mentioned
- 5 Post(s)
- Tagged
- 0 Thread(s)
Amy,
What do you mean it's loading as submitted? Are you checking to see if a variable is set? (probably the submit button from the previous page)
Check to make sure that what you're using to determine if the 2nd page is submitted or not isn't unintentionally being set on the first page. If you can provide me with your source code I'd be happy to take a look.TAKE A WALK OUTSIDE YOUR MIND.
-
Oct 13, 2009, 19:47 #3
- Join Date
- Oct 2008
- Location
- Whiteford, Maryland, United States
- Posts
- 13,782
- Mentioned
- 16 Post(s)
- Tagged
- 0 Thread(s)
If the form elements have the same name="" value on the forms and your using PHP to check if they were set then of course they are going to be set logically and its going to load up as submtited.
Thoguh this is just a guess as I don't have the HTML for the forms.
Always looking for web design/development work.
http://www.CodeFundamentals.com
-
Oct 13, 2009, 19:50 #4
-
Oct 13, 2009, 19:57 #5
Bookmarks