Single quotes stripped out: How do I rewrite this? (1.9)

Single quotes stripped out: How do I rewrite this? (1.9)

by Sam Thing -
Number of replies: 1

Hi,

My first post here =)

I've figured out the HTML editor doesn't like single quotes in urls (took me a couple of hours to figure that one out) and I've found a work-around using an external syle sheet to hold the link. Get me!

I was feeling pretty proud of my self till this morning and I tried embeding an ebrary search box in a page, failed, and hit a mental boundry I can't think past. 

It's a copy and paste job. I've not enough experience of <form> and how it works to rewrite this snippet and was hoping someone could suggest an amendment for me or refer me to some thing that might help.

Here's the originals code:

<form method="post" name="ebrary" target="_blank" onsubmit="ebrary.action='http://site.ebrary.com/lib/pgcc/search.action?p00='+ebrary.searchtext.value+'&search=Search+ebrary' ">

That line's littered with single quotes and it gets shortened to this after I hit "save"

<form onsubmit="null" target="_blank" name="ebrary" method="post">

Reading around I suspect this problem has something to do with the way PHP handles things but I'm a complete newbie with PHP.


Any input welcome.

Go Team! ;)

Average of ratings: -
In reply to Sam Thing

Re: Single quotes stripped out: How do I rewrite this? (1.9)

by Sam Thing -

If anyone has a similar problem, this works:

 

<form target="_parent" action="http://site.ebrary.com/lib/xxxxxxx/search.action" >
<input type="text" name="p00" />
<input type="submit" value="Search" name="search" /> </form>