Re: query string passing woes........ help... please....



On 28 Feb, 17:23, Geoff Berrow <blthe...@xxxxxxxxxxx> wrote:
Message-ID: <1172674402.500099.64940@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> from
r...@xxxxxxxxxxxxxxxxxx contained the following:

This page is being passed emailaddress in a query string:
http://www.chaparralmedia.net/brochureRequests/contact.htm?emailaddre...

How do I get that from contact.htm to a varible in my contact.php
page? I'm trying to make the php script send an email with the form
data to the email address (emailaddress) but I can't seem to get it to
work.

As others have said, this really isn't a good idea. Hard code the
address to which the email will be sent, or, of you have a number of
addresses, code them into an array and pass a reference.

You might find this a bit easier to implement.www.ckdog.co.uk/phmail
It just takes an html form and chucks everything at the address you
specify.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

Just to be clear, I know the point of your form is to allow an
untrusted 3rd party to send email to *themselves*, but it /could/ be
used by said person to send email to *anyone* from their spam
database.
From the tenor of your post implementing a captcha would probably be
too much hassle for you, so I suggest you include in your emails,
"someone probably you, requested a copy of our broachure.." and add a
way for them to complain to you if it wasn't them. It is illegal in
some places to send unsolicited email to businesses, and you could
find yourself in hot water if your employer comes back to you about
this.
Don't take the - this should have been done yesterday approach -
unless you have at least told your employer about the issues and got
some kind of written assurance. (Extreme perhaps, but it cuts both
ways, they then take ownership of the shoddy job)
Oh and with PHP, unless asp style tags are enabled in the php.ini file
which they usually aren't, you should attempt to use
<?php to open and
?> to close
for portability if nothing else.

.



Relevant Pages

  • Re: Jobs in php
    ... I'm not looking to work my php magic on the next Yahoo! ... But they may not be able to write one line of code, may figure out after three months they really don't like this career, or any of a number of reasons. ... But even then - the first year's salary isn't as important to an employer as getting someone reliable. ... employee can cost an employer $30-40K, by the time you figure all the costs involved. ...
    (comp.lang.php)
  • Re: Can anyone recommend a distance learning PHP and MySQL course which will get you a recognised qu
    ... | Can anyone recommend a distance learning PHP and MySQL course which will ... but such certification is *very* overrated and hardly comes into play ... relevant to what the employer wants done. ... the best recommendation i would say is for you to program a php website ...
    (alt.php)
  • Re: Encryption String From PHP, Decryption String From ASP Big Problem, Urgent !!!
    ... I do not answer questions on behalf of my employer. ... programmer helping programmers. ... > I want to decrypt the DES/3DES encrypted key from PHP using ...
    (microsoft.public.dotnet.csharp.general)
  • Re: Developing PHP under Windows - Why?
    ... I have programmed in asp for 5 years and 2 years in asp.net and if it wasn't for my employer I would never have given php a chance. ... Its always good to look at another approuch even if you can solve the problem with your old skill. ... And its good to know that once I master php I can target unix, windows, etc for deployment. ...
    (comp.lang.php)
  • Re: Best practices - GUI standards
    ... >>I hope this is on topic this looks like a pretty generic PHP group. ... > decide what font sizes THEY want. ... For this application I will need to hard code it though, ... some sort of object you could build to control styles easily...and am pretty ...
    (comp.lang.php)