php

I have to submit data through to an url .A couple of the fields have more then one word and only the first word is coming through .What do i need to add to make it post with everything echo
“<a href=https://xx.xx.xx.xxx/First_Name=$first_name&Last_Name=$last_name&Street=$address1&City=$city&County=$province&Zip_Code=$postal_code&AlternatePhone=$alt_phone&Notes=$comments&Phone_Number=$phone_code&Age=&rurl2=$row[10]&State=$state&AgentNo= >Submit to web formn”;

I have tried this “$address1” doesnt load and “$address1” does the same thing

Use post. Why are you adding that much to a url anyway?

There are so many issues there. If you are not just posting this to your own code, I am suspecting you
want to post info to a second site. If you own both, just post to the other place. If not, set up the URL
correctly.

<a href=https://xx.xx.xx.xxx/someWebPage.php?First_Name=‘ernie’&last_name=‘burt’>press here

You can not post to a website and pass data without knowing where it is going. On some sites, there is
a default page such as “default.html” or “index.php” or whatever… If you know this is in place, you can
leave off the someWebPage.php name of the web page. Passed args are always ?first-arg&2nd&3rd…

Is that what you are asking? Or do you have two pages on your site and just want to pass the data to
the second page? If so, use the form and post it as Astonecipher said…

Sponsor our Newsletter | Privacy Policy | Terms of Service