Here is an example of uploading Json Data to a MySQL database on a website/Server from a Android phone. This is great to upload user data from the phone to a website. The bad thing is that you have to use a different Thread instead of the main UI thread. It fairly simple to multithread even though some examples makes it pretty complicated. Check out my attempted to explain an example of using the Android Thread class.
Tag Archives: website building
HTML Form Example
I created this form on my graveyard site so users can share their own graveyard. It allows the user create a small profile of the grave yard and upload 5 images to the server. After filling out the form the data will be inserted into a MySQL table to be displayed later on the page they created. The page is created automatically, but I will show how that is done in a separate post. The images are uploaded to a server to be placed in unique folder to be easily displayed. From my past experience it is very important to prevent spam when creating HTML forms. I used Google’s Captcha to prevent the spam. It was very easy to setup and is very effective.
I have the files below that I created. They have examples of:
- Inserting HTML form data into a MySQL Table
- Inserting multiple images into a server using a form
- Using Google Captcha to prevent spam.
Posted by Coding, Web Design
inPreview Link by Hovering to Display an Image using jQuery
I wanted to jazz up one of my sites that had a list links so that it would display a preview of the link. I seen a great tutorial for this but I needed to hack it a little for it to work for me. So I add an ‘name’ attribute to the <a> tag. When the user mouse over the link it grabs the name attribute and concatenate with the image file extension (.JPG). Then I followed the source code from the tutorial and replaced the image. Here is the code and demo.
Posted by Coding
inUsing a html form to pull up a member’s Facebook photo or Twitter Feed
This is very vague, but I figure someone would want to do it out there. Even though they are very similar, I will show how to grab a Facebook profile photo first using php and javascript.
My ID: 100000278497888
Posted by Coding, Web Design
inVery simple contact form
Here is an example of using PHP with html form data to make a contact form for a web site. This is also a good example of grabbing HTML form data with PHP and using it. Here is the demo:
Posted by Coding, Web Design
in