I have a php page that process searches.
But sometimes I need to link to it from a different page and when I do some of the variables are not passed to it.
The format is:
echo("<A HREF='http://www.htmlforums.com/archive/index.php/process.php?search_id=X&search_value=Y'> link</A>");
Where X is sent but in this case Y should be blank. How do I set it as blank?just delete the Y.
echo("<A HREF='http://www.htmlforums.com/archive/index.php/process.php?search_id=X&search_value='> link</A>");Yeah I tried that and it works. The issue was multiple variables but even "var1=X&var2=&var3=" works, just setting var2 and 3 to empty.
Too simple, that's why I didn't get itor just don't send them at all
so instead of sending this "var1=X&var2=&var3="
do it like this
"var1=X"They had to be sent. The php page expects them.if you make them empty then it doesn't matter if you send them or not. ther ei sno differnece between
this
var1=X&var2=&var3="
and this
var1=XThe php script they are to sent expects them as it performs specific functions on all incoming variables.
No matter though as it works the way I've done it.right and that makes since, but if you send them empty is the same as not sending them at all. just wanted you to see the difference or see that they are the same.
But sometimes I need to link to it from a different page and when I do some of the variables are not passed to it.
The format is:
echo("<A HREF='http://www.htmlforums.com/archive/index.php/process.php?search_id=X&search_value=Y'> link</A>");
Where X is sent but in this case Y should be blank. How do I set it as blank?just delete the Y.
echo("<A HREF='http://www.htmlforums.com/archive/index.php/process.php?search_id=X&search_value='> link</A>");Yeah I tried that and it works. The issue was multiple variables but even "var1=X&var2=&var3=" works, just setting var2 and 3 to empty.
Too simple, that's why I didn't get itor just don't send them at all
so instead of sending this "var1=X&var2=&var3="
do it like this
"var1=X"They had to be sent. The php page expects them.if you make them empty then it doesn't matter if you send them or not. ther ei sno differnece between
this
var1=X&var2=&var3="
and this
var1=XThe php script they are to sent expects them as it performs specific functions on all incoming variables.
No matter though as it works the way I've done it.right and that makes since, but if you send them empty is the same as not sending them at all. just wanted you to see the difference or see that they are the same.