![]() |
Admin 11/22/2006 |
William, <input type=button value="Do SQL" onclick="sqlform.submit();">
<form name="sqlform" method=post> <input type=hidden name="sql" value="1"> </form>
global $conn; if(@$_POST["sql"]=="1") { db_exec("update ... set...",$conn); } |
|
sol_knar author 11/22/2006 |
Great. Code is perfect. However I do not seem to be able to directly edit the html? Is that intentional? |
![]() |
Admin 11/22/2006 |
William, |
D
|
dani 4/11/2007 |
would this work for pre-programmed (hardcoded) searches? I'd like to have several buttons like "SHOW OPEN", "SHOW PENDING", and so on. Each button would hide records that don't meet the search, of course. |
J
|
Jane 4/11/2007 |
Dani, <INPUT onclick="java script: window.location='TableName_list.php?a=search&value=1&SearchFor=666&SearchOption=Contains&SearchField=Price';" type=button value="some search">
|
D
|
dani 4/11/2007 |
Dani, sure this method works for search queries. Just add following code in the HTML mode on the Visual Editor tab: <INPUT onclick="java script: window.location='TableName_list.php?a=search&value=1&SearchFor=666&SearchOption=Contains&SearchField=Price';" type=button value="some search">
|
D
|
dani 4/11/2007 |
Dani, sure this method works for search queries. Just add following code in the HTML mode on the Visual Editor tab: <INPUT onclick="java script: window.location='TableName_list.php?a=search&value=1&SearchFor=666&SearchOption=Contains&SearchField=Price';" type=button value="some search">
|
J
|
Jane 4/12/2007 |
Dani, |
D
|
dani 4/13/2007 |
Dani, sure you can use AND, OR and NOT in your search queries.
<INPUT onclick="java script: window.location='TableName_list.php?a=search&value=1&SearchFor=666&SearchOption=Contains&SearchField=Price';" type=button value="some search"> |
R
|
rayjvb 4/13/2007 |
I'm having trouble imagining how to code a search like that into a url. Let's say I want a button for price = 666 and stock = yes. How do I hardcode that into this query?: <INPUT onclick="java script: window.location='TableName_list.php?a=search&value=1&SearchFor=666&SearchOption=Contains&SearchField=Price';" type=button value="some search">
|
![]() |
Admin 4/13/2007 |
Here is how this can be done:
|
D
|
dani 4/13/2007 |
Here is how this can be done:
http://www.....com/orders/orders_list.php?
|