Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   Combining GET and POST (http://www.programmingforums.org/showthread.php?t=13819)

Wizard1988 Aug 21st, 2007 12:15 AM

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.

Komodo Aug 26th, 2007 9:05 PM

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

DaWei Aug 26th, 2007 9:29 PM

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.


All times are GMT -5. The time now is 12:19 PM.

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