Sunday, October 20, 2013

How to create PHP based email form with file attachment

The HTML form with file upload box

The code for an HTML form with a file upload box is given below. User can click on the ‘Browse’ button to select the file from his/her local machine.
 
Code: [Select]
<form method="POST" name="email_form_with_php"
action="php-form-action.php" enctype="multipart/form-data">

<label for='name'>Name: </label>
<input type="text" name="name" >

<label for='email'>Email: </label>
<input type="text" name="email" >

<label for='message'>Message:</label>
<textarea name="message"></textarea>

<label for='uploaded_file'>Select A File To Upload:</label>
<input type="file" name="uploaded_file">

<input type="submit" value="Submit" name='submit'>
</form>
The form will look like this:

Verifying email address

1. signup.php
2. signup_ac.php
3. confirmation.php
4. config.php 

We have to create 2 databases
1. temp_members_db 
2. registered_members

What to do
1. When users sign up. Random a set of confirmation code.

Wapka Download Page Code

<b>NAME:</b> :get-n:<br/><center><img src=":get-w:" alt="preview"/></center><br/><b>SIZE:</b> :get-s:<br/><b>DOWNLOADS:</b> :get-dl:<br/><b>DESCRIPTION:</b> :get-c:<br/><b>ADDED ON:</b> :get-t:<br/><b>LAST DOWNLOAD:</b> :get-l:<br/><br/><center><b>HAPPY DOWNLOADING</b></center><br/><table><tr><td><b>Download Link: </b></td><td><form action=":get-d:"><input type="submit" value="Download"/></form></td></tr></table><br /><br />Share oN-<a href="http://m.facebook.com/sharer.php?=http://site.com/%url%"><img src="/img/1901/1901200_500314f429.png"/></a>

Wapka login code

<form method="get" action="login_site.xhtml" >
<input type="hidden" name="do_id" value="0" />
Login:<br/><input type="text" name="wu_login" />
<br/>Password:<br/><input type="password" name="wu_heslo" />
<br/><input type="checkbox" name="wu_autologin" value="1" />
Automatic login <small>(you must allow cookies in phone)</small><br/><input type="submit" name="log_submit" value="Log in" /></form>

Friday, October 18, 2013

Wapka.Mobi Online user code

 Online Users:-:@userstat@s:d=oa, o=t, a=guest ::Name-%lna@me% <br/> CountrY-%flag% %country1% <br/> Phone-%browser% <br/> I@P-%ip% <br/> BusY at-%locatio@n%::<hr/>:/u@serstats:

Wapka.Mobi Search box code

Now goto wml/xhtml past this
<form method="get" action="site_ww.xhtml?hash=bd8c6590a5f491d2fcc06249fc52db"><input type="hidden" name="hash" value="bd8c6590a5f491d2fcc06249fc52db" /> <input type="text" name="get-search" value="" /><input type="submit" value="Search"/><br/></form>


and remove ww to ur page id

HTML/xHTML, JS code Tester

<script type="text/javascript">
function preview()
{
var odiv=document.getElementById('outputdiv');
var idiv=document.getElementById('inputcode');
odiv.innerHTML=idiv.value;
}
</script>