![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
New to the CF scene Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
_POST Syntax from HTML Form
Hello all and thanks in advance for any help. I am using Joomla and chronoforms (a joomla extension) to upload data into mysql from a form which a user fills out. I am having one issue with the following part:
PHP Code:
|
|
|
|
|
|
PM User | #2 |
|
New Coder ![]() Join Date: Feb 2009
Posts: 32
Thanks: 0
Thanked 4 Times in 4 Posts
![]() |
You need to make their names city and state, not their ids.
Also, you need to either use $_POST['city'] and $_POST['state'] or before $city and $state are used, do $city = $_POST['city']; and $state = $_POST['state']; |
|
|
|
| Users who have thanked `Jeremy for this post: | Becca800 (02-23-2009) |
|
|
PM User | #3 |
|
New to the CF scene Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
thanks
The names are city and state, as I said above, and the ids as well. THank you, the first suggestion did not work but the second one partly did. When I entered Houston TX into the form I got:
Best Houston0Home Stager So I got the city, but not the state. Same code as above but added: PHP Code:
|
|
|
|
|
|
PM User | #4 |
|
New to the CF scene Join Date: Feb 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
For some reason, the state variable is not going through. I will forge on and figure it out, thanks for helping though, you helped me tremendously.
UPDATE: Yeah, I am a foobar in the flesh. I already had another variable named state in some syntax above that equaled to 0. Last edited by Becca800; 02-23-2009 at 04:35 AM.. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|