1. I have a text box and the user needs to enter a number of strings that will be delimited by a comma. I need to check if each of the string values entered are unique (regardless of the casing). Is there a way to do this 'easier' (something akin to an AJAX component) or there's no way to go around this than to do it programmatically?
2. I have this code
Code: Select all
echo "<a href=sydney.php?cityname=", strtoupper($row["name"]), ">", $row["name"], " SALES + EVENTS <br></a>";3. We have a table and we have <a href> links whose jobs are to view, edit and copy the data for each row. For the "view" and "edit" functions, there is no problem since we just pass the variables and get them via the $_POST/$_GET function to the other page. But for the 'copy' function, it's just a straightforward MySQL (we're using MySQL as backend, BTW) function that should copy the row information to a specific table in the database and it should not really redirect to another page. The very least I could do is to pop up a javascript message box/alert/prompt asking the user if he really wants to copy the info and then, call the function that copies the row info after he clicks "OK" but my main problem is, I don't know how to call the function w/o using a button's "POST" action/method.
Don't ask me why we're not using buttons for this, because I did not really come up with the UI, so I have to make do with what's on my table.
I hope I made sense. Thank you in advance.