Sorry should have mentioned that Id prefer html only if possible
Main Topics
Browse All TopicsThis is frustrating because Im sure Ive done it before.
I need a form to send the variable "q" as a hidden value plus a submitted value.
I have this code
<form action="http://froogle.goo
<input type="text" name="q" size="30"
value="www.cafepress.com/o
<input type="submit" value="Froogle Me">
</form>
and if I put in the search for "ascii" then it works.
I have this code to try and hide part of the search.
<form action="http://froogle.goo
<input type="text" name="q" size="30">
<input type="submit" value="Froogle Me">
<input type="hidden" name="q" value="www.CafePress.com/o
</form>
and if I put in "ascii" as a search then it sends 2 "q" with the wrong results.
What I need is hiddenvariable+submitted so that if I tell it to search for ascii then it sends
q=www.cafepress.com/oddtho
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
<code>
<form
action="http://froogle.goo
<input type="text" name="q" size="30">
<input type="submit" value="Froogle Me">
</form>
</code>
You asked:
q=www.cafepress.com/oddtho
But my example gives:
q=ascii+www.cafepress.com/
which does the same thing...
Well I put it up to test here...
http://www.oddthotz.com/fr
and when I put in ascii, all that seems to get sent is ascii.
Did I copy it wrong?
I don't know...
Someone else may have a better answer, but one way is to pre-fill part of the field:
<body onload='document.forms[0].
<code>
<form action="http://froogle.goo
<input type="text" name="q" size="50" value="www.CafePress.com/o
<input type="submit" value="Froogle Me">
</form>
</code>
But without Javascript, even the focus() does not work.
I wonder if its possible to pad the field so that the text is far to the right. Something like "+www.cafepress.com/oddtho
If you prefill the field and do not want to use javascript, then the answer is that it is completely up to the browser
Alternative use a server process to handle it - no need to refresh - you can have the server send redirect headers and if the browser refuses it, then that is tough. You cannot please everybody all the time.
If you really, really want, you can do the froogle call on the server and return the result to the user from your own server.
Be aware of copyright issues.
Michel
Thanks for the extra info Michel. Mod please also award {http:#18218272}.
Business Accounts
Answer for Membership
by: callrsPosted on 2006-09-04 at 08:56:31ID: 17450408
<script type="text/javascript"> www.CafePr ess.com/od dthotz"
gle.com/fr oogle" method="get" onsubmit='return CombineQ(this);'> ddthotz" -->
function CombineQ(frm){
frm.q.value=frm.q.value+"+
alert(frm.q.value);
return true
}
</script>
<code>
<form action="http://froogle.goo
<input type="text" name="q" size="30">
<input type="submit" value="Froogle Me">
<!-- input type="hidden" name="q" value="www.CafePress.com/o
</form>
</code>