jedaisoul, Thank you for reply.
Okay, not the problem
1....7
I need the code to control two
Only if() the code
array name="day_of_week[]"
Disable week days, selected() value(-1)
<select size="8" name="day_of_week[]" id="day_of_week" multiple>
<option value="-1" selected="selected">*</option>
<option value="1">Sunday</option>
<option value="2">Monday</option>
<option value="3">Tuesday</option>
<option value="4">Wednesday</option>
<option value="5">Thursday</option>
<option value="6">Friday</option>
<option value="7">Saturday</option>
</select>
First control: Disable week days, a selection, a value (-1)
if($_POST['day_of_week']=='-1'){
Codes for disable week days
I have this code available
}
Second control: Enable week days, selection a or multi day(s).
Note: Are excluded value (-1) "Not select " " and day(s) of week the same time!"
// days "1,2,3,4,5,6,7"
if($_POST['day_of_week']>-1){ // I need some help here
Codes for aktive week day(s)
I have this code available
}
I've been using it for the dates of the week
I change the, 1....7, no problem
and I use this date('N'), no problem
if($sonraki_gun=='0'){
$h_tarihi=date('d.m.Y', strtotime('noon sunday')); // Pazar
}elseif($sonraki_gun=='1'){
$h_tarihi=date('d.m.Y', strtotime('noon monday')); // Pazartesi
}elseif($sonraki_gun=='2'){
$h_tarihi=date('d.m.Y', strtotime('noon tuesday')); // Salı
}elseif($sonraki_gun=='3'){
$h_tarihi=date('d.m.Y', strtotime('noon wednesday')); // Çarşamba
}elseif($sonraki_gun=='4'){
$h_tarihi=date('d.m.Y', strtotime('noon thursday')); // Perşembe
}elseif($sonraki_gun=='5'){
$h_tarihi=date('d.m.Y', strtotime('noon friday')); // Cuma
}elseif($sonraki_gun=='6'){
$h_tarihi=date('d.m.Y', strtotime('noon saturday')); // Cumartesi
}
For this project: http://www.zamanlayici.antenfiyati.com/?lng=en