<form name="openlocation"> <input type="text" name="code" value="AT"> <input type="button" value="Go To" onClick="document.location = "fullc.php?="'document.openlocation.code.value';; "> </form>
<input type="text" id="code" value="AT"/> <button type="button" onclick="location.href='./fullc.php?code='+$j('#code').val();">Go To</button>
<input type="text" id="code" value="AT"/> <button type="button" onclick="location.href='./fullc.php?code='+document.getElementById('code').value;">Go To</button>
Yay, nearly there. Just the 'code' needs to be in single quotes in the final URL.
Though that now seems to have broken somehow :@
Fantastic. Done. Sorted. Working. :D
Also, don't worry, I'll be keeping you occupied with more questions in the coming weeks/months. :Y
<form action="./fullc.php" method="get"> <input type="text" name="code" value="AT"/> <button type="submit">Go To</button> </form>
(hug)
I might just keep the original code :P
Anyway, what makes this "better"?
$editnews =MYSQL_QUERY("UPDATE nmr SET code='$code',labbookref='$labbookref',contents='$contents',solvent='$solvent',elements='$elements',servercode='$servercode',time='$time',machine='$machine',year='$year',month='$month',nmre1='$nmre1',nmrn1='$nmrn1',nmre2='$nmre2',nmrn2='$nmrn2',nmre3='$nmre3',nmrn3='$nmrn3',nmre4='$nmre4',nmrn4='$nmrn4',nmre5='$nmre5',nmrn5='$nmrn5' WHERE id='$id' ");
Id is mediumint(5).
Just tried echoing it and it doesn't seem to echo $id which is odd.
Actually, I may know why.
Right, id issue sorted, when I echo it and run it directly in mysql (phpmyadmin) it works fine, no errors, and the database updates as expected.
:@