Developer Support »

Parse error (missing apostrophe)  (See more user questions)

My pleasure to assist, !

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Monday, November 24, 2008 12:39 AM
Subject: Re: FormToEmail script


> Hi Charles,
> You are very kind to keep replying so promptly--thank you!
>
> I was thinking that the redirect was in the php script, which it sort of
> is,
> but I just deleted the link in the html which forces the user to close the
> "your message has been sent" page when they are done which brings them
> back
> to where I want them to go. Simple solution--sorry to have bothered you
> with my dumb question. Thanks fr not making me feel stupid!
>
> On Sun, Nov 23, 2008 at 3:22 PM, FormToEmail.com
> wrote:
>
>> Hi
>>
>>
>> Glad you fixed the script. Now you're just trying to get fancy! I can't
>> help you with new windows and closing windows and the like, that's
>> JavaScript. Just use the script as it is.
>>
>> The Pro version has an autoredirect to a "thank you" page, if that's any
>> use to you.
>>
>> Any questions, just let me know.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> ----- Original Message -----
>> Sent: Sunday, November 23, 2008 7:37 PM
>> Subject: Re: FormToEmail script
>>
>>
>>
>> Charles,
>>> Thanks very much--I went through the script again and found that I had
>>> omitted a single apostrophe when I added a recipient email address and
>>> now
>>> it works perfectly.
>>>
>>> But I have another question--I am having the form open in a new window
>>> and
>>> want the window to close on the click when the confirmation message says
>>> "Click here to continue." Is that possible?
>>>
>>> Here is a link to the page if you want to see how I've used the script
>>> and
>>> form. It is used by ski racers in Maine. There is currently not a live
>>> link to it from the homepage as don't want anyone to use it until it
>>> works
>>> perfectly.
>>>
>>> http://
>>>
>>> thanks very much in advance!
>>>
>>> On Sat, Nov 22, 2008 at 6:24 PM, FormToEmail.com wrote:
>>>
>>> Hi
>>>>
>>>> Thank you for your question, my pleasure to assist you. Glad you like
>>>> the
>>>> script!
>>>>
>>>> That error means you have made a syntax error when editing the script.
>>>> It
>>>> is saying it is expecting a ")" somewhere. You must have left it out
>>>> when
>>>> you copied and pasted the code. The line numbers can sometimes be
>>>> ambiguous, the line you have shown is good.. Attach a copy of your
>>>> script
>>>> and I will show you where the error is.
>>>>
>>>> Best wishes.
>>>>
>>>> Charles Sweeney
>>>> https://formtoemail.com
>>>> The world's easiest feedback script!
>>>>
>>>> ----- Original Message -----
>>>> Sent: Saturday, November 22, 2008 10:43 PM
>>>> Subject: FormToEmail script
>>>>
>>>>
>>>>>
>>>>> Comments: I have created a form that allows the user to choose a
>>>>> recipient. I cut and pasted the code as shown in support but I get
>>>>> the
>>>>> following error:
>>>>> Parse error: syntax error, unexpected T_STRING, expecting ')' in
>>>>> /home//public_html/contactForms/FormToEmail.php on line 186
>>>>>
>>>>> This is line 186:
>>>>> $my_email = $recipients[$_REQUEST['recipient']];
>>>>>
>>>>> Thank you very much for your script--it is awesome and was working
>>>>> great
>>>>> when the form only went to one recipient. I don't see an obvious
>>>>> error
>>>>> but
>>>>> I am new to php.
>>>>>
>>>>> thanks very much for your help!