Jump to content

jesse8771

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jesse8771's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. that would be fine if I only had one $_GET statement to make... I apologize if it was in somehow difficult to understand.  URL String is malformed but is this.... ...send.php?urlstr=user%3DJESSE%2520REYES (Not this.... ...send.php?user=JESSE%20REYES) [color=red]*same question still applies...[/color]
  2. I have a query string coming over as send.php?urlstr=user%3DJESSE%2520REYES when I put this into a variable to use I get the following: $myVar = $_GET['urlstr']; echo $myVar; (echos the following: user=JESSE%20REYES) I need to utilize the name JESSE REYES how do I capture this value in another php variable??? something like so? $user = ($myVar($_GET['user'])); So in essence I am trying to get a value from a url string inside a url string? ?????????????????????????????????? Thanks for your help J
  3. by the way, the output of the query string as it is echoed is as follows: Value for parameter urlstr is theName=JESSE%20SCOTT&theEmail=EMAIL%40YAHOO%2ECOM&thePurpose=THIS%20IS%20THE%20SUBJECT%20&theMessage=THIS%20IS%20THE%20MESSAGE Hope someone can help...
  4. Hello all, This is probably an easy fix but I am still relatively new to php... I have a query string being sent over from Flash mx 2004 as follows: urlstr=theName%3DJESSE%2520SCOTT%26theEmail%3DEMAIL%2540YAHOO%252ECOM%26thePurpose%3DTHIS%2520IS%2520THE%2520SUBJECT%26theMessage%3DTHIS%2520IS%2520THE%2520MESSAGE (where capitalized words are the values of variables I have named the following: theName, theEmail, thePurpose, theMessage) I am trying to use php to pull the values of the variables out into new variables php can recognize then use the mail() function to send the form.  I already have the following php coding but it doesn't seem to work.  Can anyone help me decode the query string and strip out the values to be sent out with the mail() function??????????? <?PHP //first we must decode the urlstring $a = explode('&', $QUERY_STRING); $i = 0; while ($i < count($a)) {     $b = split('=', $a[$i]);     echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])),         ' is ', htmlspecialchars(urldecode($b[1])), "<br />\n";     $i++; } $to = "someone@somewhere.com"; $subject = "flash contact form submission:  "; $subject .= $thePurpose; $message = "Name: " . $theName; $message .= "\nEmail: " . $theEmail; $message .= "\n\nPurpose: " . $thePurpose; $message .= "\n\n" . $theMessage; $headers = "From: " . $theEmail; $headers .= "\nReply-To: " . $theEmail; $sentOk = mail($to, $subject, $message, $headers); echo "sentOk=" . $sentOk; ?> Thanks in advanced for the help... J
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.