473,473 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1931
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.