472,955 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,955 software developers and data experts.

Help with split/Formmail.pl

Hello,

I have software that allows direct submission of tech support requests.
The software connect directly to a formmail script. The problem is that
if the user types a '=' or a '&' anywhere in the message, the resulting
email is truncated at that spot.

It looks like the sub parse_form routine, which splits on '&', is
responsible. Then again, submitting the same text from a web form (to
the same formmail.pl) does not truncate the text.

I submit the text in the form:

&recipient=the_recipient
&subject=the_subject
&=the_actual_message

Again, the_actual_message is clipped at first occurence of a '&' or
'='.
Any ideas how to fix this?

Kurt

Jul 19 '05 #1
1 1911
Kurt wrote:
I have software that allows direct submission of tech support
requests. The software connect directly to a formmail script. The
problem is that if the user types a '=' or a '&' anywhere in the
message, the resulting email is truncated at that spot.

It looks like the sub parse_form routine, which splits on '&', is
responsible.
Whichever formmail script it is you are using, it reasonably
presupposes that the incoming data is URI escaped, while the data you
are transferring from that other software is apparently not URI escaped.
Any ideas how to fix this?


Escape the data before passing it to formmail. See the URI::Escape module.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mcp6453 | last post by:
I am trying to use Jack's FormMail script (http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP and not very good at HTML, I have an easy question, which I will narrow down. When...
0
by: Craig | last post by:
I keep getting the error "Error: Bad/No Recipient" when submitting a form using formmail.pl Here is the part of the formmail.pl that you are supposed to alter to suit your needs using fake url...
8
by: EBG | last post by:
I'm an HTML novice and have a "mail to" form on my site where users fill in info and send it to the email address I specify. After looking into it, it's obvious this isn't the way to go, as most...
2
by: Margaret Werdermann | last post by:
Hi all: I'm having a nasty time with a particularly difficult piece of code and was hoping someone might be able to help me. I have a FormMail form that originally worked perfectly. Then, I...
7
by: hbm9966 | last post by:
Hi everybody I have the following form written in html which I need to validate. Have tried a few things, but the validation bit written in javascript does not seem to be getting accessed at all....
2
by: Rico | last post by:
Hello, I'm using formmail.asp which is an emailing utility. Basically, the user fills out a request page, clicks "Submit" and the page posts to formmail.asp which emails the user information. ...
4
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 and have downloaded the free script formmail.php (version 4.1b). Wondered if anyone had experienced the same problem I'm having. I'm submitting a form to formmail.php, but...
2
by: poohbah | last post by:
Hi Everyone - I am very new to scripting. I got a formmail.asp file off the internet to set up a simple form on a contact us page, The problem is that the email addresses in the results emails are...
3
by: Geoff Cox | last post by:
Hello, I am using the formmail.cgi script and wonder if it is possible to have the user enter their email address and then have the results sent to this address by formmail.cgi? If yes, how...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
1
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.