Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Aug 21st, 2007, 12:15 AM   #1
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 4 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
Combining GET and POST

I have a form which uses the post method but the action parameter uses post.

[html]
<form method="post" action="page.php?var=test">
<input type="text" name="someName"/>
</form>
[/html]
I am having trouble accessing the post elements of the form. What am I doing wrong??:o I sure hope this isn't one of those small stupid things.

Thanks in advance.

I got this resolved, it turned out to be an error in one of the files I was including.

Please delete this post.
__________________
JG-Webdesign

Last edited by big_k105; Aug 21st, 2007 at 2:06 PM. Reason: Resolved
Wizard1988 is offline   Reply With Quote
Old Aug 26th, 2007, 9:05 PM   #2
Komodo
Hobbyist Programmer
 
Komodo's Avatar
 
Join Date: May 2005
Location: Scranton, PA
Posts: 112
Rep Power: 0 Komodo is an unknown quantity at this point
Send a message via AIM to Komodo Send a message via MSN to Komodo
missing a submit button...

use this as an example to access the variables:
$variable=$_Post[someName];
$variable2=$_Get[var];


I might be a little off or completely amiss, I'm a little out of practice with PHP
Komodo is offline   Reply With Quote
Old Aug 26th, 2007, 9:29 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
As he said,
Quote:
I got this resolved, it turned out to be an error in one of the files I was including.

Please delete this post.
Appears it didn't get deleted OR ignored.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei 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:18 PM.

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