For example:

$a = 'a b c';
print $a;            // a b c
print urlencode($a); // a+b+c

So, you want to urlencode your url (the query string).

Regards,
Philip

On Sun, 22 Jun 2003, Denis L. Menezes wrote:

> I have a form called feedback which has a hidden field as follows :
> <?php
> Print"<input type=\"text\" name=\"SubCategoryName\"
> value=\"$SubCategoryName\">";
> ?>
> 
> I send this hidden field as a variable in form2 which sends an email with
> the following code :
> <?php
>    // Build up email header fields
>      $mailFrom = $SenderName;
>     $mailTo = "[EMAIL PROTECTED]";
>     $mailSubject = "Message form mydomain.com";
>  $link="Please follow this link
> "."http://www.mydomain.com/findbymember.php?SubCategoryName=".$SubCategoryNa
> me;
> 
>  $Message="$SenderName had searched for '$SubCategoryName'. His/her details
> are as follows : "."\n"."Telephone number : ".$SenderTelNumber."\n";
>  $Message=$Message."Mobile number : ".$SenderMobNumber."\n"."Email address :
> ".$SenderEmailAddress."\n";
>  $Message=$Message."Address : ".$SenderAddress;
> 
>     // Send email to member company
>     mail($mailTo, $mailSubject, $Message,$link);
> ?>
> 
> When my variable in form 1 is "Large Format Print", the mail that arrives is
> as follows :
> Please follow this
> linkhttp://www.findusnow.com/findbymember.php?SubCategoryName=Large Format
> Print
> 
> Jack had searched for 'Large Format Print'. His/her details are as follows :
> Telephone number : 454588445
> Email address : 989855564
> Address : some address1, some home, some street, some city
> 
> As you can see the link does not show the full variable at the end and shows
> only the word "large" instead of "large Format Print"
> 
> can any of you help?
> 
> Thanks
> denis
> 
> 
> 
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to