|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
This error is killing me
Can someone help me with this line of code please. I have 3 drop down menus in a html form. They are "year" "month" and "day". Now when I hit submit they go to a php program and want I'm trying to do is join them together. This is the part of code I came up with, but not working. $date_yardsale = $_post[date_yardsale = join ('year','month','day')];
can someone help me please? This is the error I get: Parse error: parse error, expecting `']'' in /home/XXXXXXX/public_html/yard/register.php on line 6 Thanks |
|
#2
|
|||
|
|||
|
i believe the problem is, that u cannot have a '=' inside the square brackets '[]' so the coe should lok like this:
PHP Code:
|
|
#3
|
||||
|
||||
|
You can do something like this too:
PHP Code:
Just as easy I think...
__________________
Work to live, don't live to work |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > This error is killing me |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|