Difference between revisions of "Web design FAQ"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(<quote>)
(block)
Line 5: Line 5:
 
'''Question:'''
 
'''Question:'''
  
<quote>I have a client that wants to receive information from a form and when they click
+
<blockquote>I have a client that wants to receive information from a form and when they click
 
the submit button they want their viewer to be launched to a different site ... like a
 
the submit button they want their viewer to be launched to a different site ... like a
 
YouTube video.
 
YouTube video.
Line 12: Line 12:
 
The clients intent is to track those that go to the video.
 
The clients intent is to track those that go to the video.
  
The form I am using utilizes a [[JavaScript|JS]] to capture and a [[PHP]] to send the info to the client.</quote>
+
The form I am using utilizes a [[JavaScript|JS]] to capture and a [[PHP]] to send the info to the client.</blockquote>
  
 
'''Answer:'''
 
'''Answer:'''

Revision as of 13:53, 29 July 2015

Questions I have received about web design, and my advice.

Tracking web form submittal

Question:

I have a client that wants to receive information from a form and when they click

the submit button they want their viewer to be launched to a different site ... like a YouTube video.

I am using a bootstrap form that captures info and sends it to site owner via email. The clients intent is to track those that go to the video.

The form I am using utilizes a JS to capture and a PHP to send the info to the client.

Answer:

The web form submits to a PHP script; the PHP script sends an email to the site owner.

In the PHP script, after sending the email, do the following:

  • Log the user's visit: write a line to a log file, or add a record to a database, with the user's IP address and time of visit.