Return the input text
Hi all
I have worked out how to use this with my sql database and how to return the as_values of the entered string however I can't work out how to return the actual text that was entered. eg the Mick Jagger bit.
Simply I have this
<?php
$artist_id = $_POST['as_values_chris'];
$artist_name=$_POST['want_this_value'];
?>
<form action="" method="post" name="artist_registration" id="artist_registration" >
Name of Artist<br>
<input type="text" id="artist_register" name="want_this_value"><br>
<input type="submit" name="artist_submit" value="find"/>
</form>
</body>
<script type="text/javascript" >
$("#artist_register").autoSuggest("path to sql", {
asHtmlID: "chris",
selectedItemProp: "name",
searchObjProps: "name",
selectionLimit: 1
}
})
</script>`
Can somebody please tell me how to return the input string? I think I've tried everything I can think of and am stumped - I can't help thinking it is painfully obvious.
Thanks in advance
Chris
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac