Return the input text

Chris's Avatar


25 Aug, 2011 01:45 PM

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

$artist_id = $_POST['as_values_chris'];

<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"/>


<script type="text/javascript" >
$("#artist_register").autoSuggest("path to sql", {
     asHtmlID: "chris",
     selectedItemProp: "name", 
     searchObjProps: "name",
     selectionLimit: 1

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


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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