hi all,
i just wanna to make a href and send a parameter with this href and this parameter is the input of a textbox.
here what i did:
<a href="1.html?title_edit='window.document.getElementById('ti').value'>Edit</a>
but it has a syntax error...i donot know where and why...?
actually, i develop php under drupal if u heared before ,all what i need to get the current value that i want to delete or edit not the all values in the array as i have in this code. then i'll complete what i wish
thanks for ur time
but i didnot fill the table with my hand i select from db and fill it automatically the while loop make that so i canot put a diffrent values and names for the hidden field
while ($links = mysql_fetch_array($queryResult))
{
echo'<tr><td><input type="textbox" name="ti"...
:D:D
i make the primarykey of table is the "title" but the problem is that the delete value have the whole array of the all titles that i have in the table so when i tried to delete it deletes one by one from the last record in the array....
thanks for ur guidlines but what u told me to do doesnot work as i wanted,,i wanna delete the record what i pressed to delete but this way i tried before it deleted the last record in db ,doesnot recognize which row i select to delete..
hope u get my problem
thanks in ur advance
hi all
i was trying to delete a record from a data base based on the value of hidden filed i made.but this is not performed in a proper way....so how can i do this
here is what i get!!!
<?
$query = "SELECT title, url FROM managelinks";
$queryResult = mysql_query($query);
"<div...
but when i make the submit button i need it submit to the same page so i write
function add(t)
{
var myform=document.createElement("form");
document.myform.action ="managelinks.module";
.......//the remaing of the previous code
......
}
i have an error in this line...
@Diancecht: i wana try to reload page to know the value that exist in 2 textboxes and make the insertion with this values in db.
@vicvirk: i used to use php
hi all,
i've 2 text boxes and save button and i wanna when i click save button take the values of 2 textboxes then insert in db,
i know that js is client side and i cannot connect to db with ,so i try to make a hidden field with 2 textboxes and try when i click submit button i'll reload to the...
iam a beginner in javascript and need some help,
i want when user press delete button delete it from interface also delete from databse
i successed to remove from interface but i canot remove it from data base becouse it is server side and javascript is client side,.. plus i have to detect...
hi all,
iam just a begineer in java script,and i tried my program that load data from a database in combo box,my table is managelinks that contain 2 fields title and url ,the title column is loaded in combo box and i tried when the user changes the value of this combo box i select from database...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.