How to pre-fill a url in HTML -


i'm trying send email ad out clients when click on link website, information such name, email, , dob included on form.

i'm using structure right in url , it's pre-filling name, nothing else:

params=fname/{{firstname}}/lname/{{lastname}}/birthdate/{{dob_year}}/{{dob_month}}/{{dob_day}}/email/{{email}} 

what do?

that's because use / separator birthdate data. try use separator year/month/day

params=fname/{{firstname}}/lname/{{lastname}}/birthdate/{{dob_year}}-{{dob_month}}-{{dob_day}}/email/{{email}} 

if need slash birthdate can handle before displaying:

php example:

$date = implode('/', explode('-', $_get['birthdate'])); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -