i tried to change the name didnt work
Really need a bit more information on how the code stands now, and your definition of âdidnât workâ, to be any help. If youâre still using form variables that might not exist without checking whether they exist, then youâll get undefined index errors when they do not. Changing the names wonât help.
variables checking whether they exist how check .
Well, you already do it in the first line of your posted code.
One way is to use isset()
to check, but empty()
will check whether the variable exists, and whether itâs empty. So isset()
will return true if the variable exists whether it is empty or not, whereas empty()
will return true if the variable either does not exist, or does exist and is empty.
We need to see the actual form. It seems like you arenât telling everything like you usually do. Thatâs why you have all these vague explanations.
Iâve just presumed a language barrier is the reason for the very short comments from the OP.
if($images){
echo "Yes 1";
}
if(!is_null($images)){
echo "Yes 2";
}
$images = "hello";
if($images){
echo "Yes 3";
}
I tried this i got yes 3
What about trying the functions I mentioned in post #24?
#24
where is it
General note for the forum: If you look in the top right corner of any post, it shows the post number within a thread, as Iâve highlighted here showing your post as number 29.
Off Topic:
Post numbers are not shown on mobile, but if you tap on the post indicator at the bottom of the topic (blue box showing, for example 30 / 31), it will open a dialogue with a âjump toâ option. Enter the post number you want to find and it will take you straight there.
On desktop, you can open the dialogue by typing #
and then enter the desired post number.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.