Jump to content

Recommended Posts

I'm a rank amatuer so be gentle...

 

I have a page I've created in Dreamwever MX. This page displays the entries in a mySQL table with a repeat region and it works fine. Now I want to create a link next to each entry where a user can email the creator of that record. I created a link named 'contact this user' within the repeating table to a form for composing a message.

 

Now I'm fumbling...

 

The URL I created appends '?someusername=&someusername%40gmail.com=' to that end of the URL to the contact form.

 

When the user reaches that form I now need the first portion of the string (username to be contacted) to be placed on the form. I also need to post method to be to send email to the second portion of the string (an email address). Is this possible?

 

Thanks for your time.

Link to comment
https://forums.phpfreaks.com/topic/2365-accepting-url-encoded-values/
Share on other sites

use $_GET variables...

 

let's see if I understand... you have a user named joeBob. his email is joeBob@gmail.com, and you want someone to be able to send him an email.

 

this is the part I (possibly) am confused about.

the appended part would look like ?joeBob=&joeBob%40gmail.com ???

 

if that is the case, I would suggest you have it append

?user=joeBob&email=joeBob%40gmail.com

 

and then get the values by using $_GET['user'] (returns joeBob) and $_GET['email'] (returns joeBob%40gmail.com)

 

neylitalo

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.