hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Web Form Email
Reply

Forum Jump

Web Form Email

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2004, 04:22 PM
SimonMc SimonMc is offline
Web Hosting Master
 
Join Date: Dec 2001
Posts: 1,372

Web Form Email


I have a pHP script that processes an order form on my site. The problem I have is when someone fills out the order form using say a polish character set I get stuff like this come through

Szántó

Any Idea how I can correct this?

Thanks for looking.

Simon



Sponsored Links
  #2  
Old 10-07-2004, 12:16 AM
Saeven Saeven is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Canada
Posts: 647
You don't want those characters?

  #3  
Old 10-07-2004, 02:10 AM
SimonMc SimonMc is offline
Web Hosting Master
 
Join Date: Dec 2001
Posts: 1,372
Quote:
Originally posted by Saeven
You don't want those characters?
Sorry....the forum software has corrected it. It was:

S z & a a c u t e ; n t & o a c u t e ;

Remove the spaces. What the forum software did is actually what I would like my Form processor to do and that is to correct these characters so I can actually read them.

Any ideas?

Simon

Sponsored Links
  #4  
Old 10-07-2004, 04:42 AM
gogocode gogocode is offline
Web Hosting Evangelist
 
Join Date: Mar 2004
Location: New Zealand
Posts: 527
Quote:
Originally posted by SimonMc
Sorry....the forum software has corrected it. It was:

S z & a a c u t e ; n t & o a c u t e ;

Remove the spaces. What the forum software did is actually what I would like my Form processor to do and that is to correct these characters so I can actually read them.

Any ideas?

Simon
There is a bug in your script, it's doing htmlspecialchars/htmlentities or a varient thereof twice on the same data somewhere.

__________________
James Sleeman
PHP Programmer | Specialist PHP 5 Web Hosting

  #5  
Old 10-07-2004, 07:12 AM
SimonMc SimonMc is offline
Web Hosting Master
 
Join Date: Dec 2001
Posts: 1,372
Quote:
Originally posted by gogocode
There is a bug in your script, it's doing htmlspecialchars/htmlentities or a varient thereof twice on the same data somewhere.
I have this entry but only once:

$body .= htmlentities($_POST['email']);

Does this give a clue? I do not have htmlspecialchars anbywhere.

Simon

  #6  
Old 10-07-2004, 08:02 AM
webshome webshome is offline
Junior Guru Wannabe
 
Join Date: Oct 2004
Posts: 54
hi there,

you must check htmlspecialchars in your script


Regards
webshome

__________________
WebMastersHome.com Rewarding webmasters add a post and Earn $
HostingTalk.in Add STICKY your Post

  #7  
Old 10-07-2004, 11:38 AM
SimonMc SimonMc is offline
Web Hosting Master
 
Join Date: Dec 2001
Posts: 1,372
Quote:
Originally posted by webshome
hi there,

you must check htmlspecialchars in your script


Regards
webshome
How do I add that to my script. Sorry, I am a bit of a hack not a programmer. I can insert code in the right place as long as I know what and where

Any help appreciated.

Simon

  #8  
Old 10-08-2004, 03:21 AM
SimonMc SimonMc is offline
Web Hosting Master
 
Join Date: Dec 2001
Posts: 1,372
If I add:

$body .= htmlentities/htmlspecialchars($_POST['email']);

Is this correct or should it be:


$body .= htmlentities($_POST['email']);
$body .= htmlspecialchars($_POST['email']);

Thanks for looking

Simon

Reply

Related posts from TheWhir.com
Title Type Date Posted
Security Experts Refute German Email Security Firms Secure Data Storage Claim Web Hosting News 2013-08-13 16:24:48
Super Charge Your Trial Program Blog 2013-05-16 09:48:11
Lead Generation Part 1 – Form Fills Blog 2012-11-16 09:03:48
Email Marketing Software CakeMail Now Available to LuxCloud Resellers Web Hosting News 2012-08-29 10:34:25
Users See Difficulties as Microsoft Moves Office Live Small Business to Office 365 Web Hosting News 2012-05-02 09:24:44


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?