Help with php on my site

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 44
Joined: Tue May 28, 2013 10:04 pm
Location: India,Lucknow

Sat May 24, 2014 7:03 am

You do it like this.

When you choose credit mode. You generate a session like this.

<? //php ?>
if ($_POST ['b_submit'])
$_SESSION ['credit']="Yes";

<? //form,do as you want,just a example ?>
<form name="asdf" method="post"><input type="submit" class="style_form" name="b_submit" value="Credit"></form>

Now,you write this query to show video only if session credit is there.

if ($_SESSION ['credit'])
your video file<param></param>

For unsetting credit session.Use this query.

session_start ();

the session credit will go off. and video will not be visible until you submit that form again.Any advanced help,i will create a whole page and give it you. No problem dude.


Post Reply
  • Information
  • Who is online

    Users browsing this forum: andreKal, Exabot [Bot] and 4 guests