Current location: Hot Scripts Forums » Programming Languages » PHP » big logical problem (very important for me )


big logical problem (very important for me )

Reply
  #1 (permalink)  
Old 06-12-08, 11:23 AM
zodehala zodehala is offline
Wannabe Coder
 
Join Date: Mar 2007
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
big logical problem (very important for me )

x.php
Code:
<a href='y.php?t="x" tabindex='1' title='' accesskey='1' target='_self'></a>
y.php

PHP Code:

<?php

//codes bla bla bla.......
//fetching data according  data coming form x.php 

// there is a form here which is fetching data from db according to data coming from x.php
//and this form sent  thats data to  "?do=pro" when click to button

if ($_POST["do"] = "pro"){
    
    
//the proccess  will be done according to data is caming from from 
    // but when i click the button  bacouse the page is refreshed all varibale value is null 
}
how can i solve this logical problem ?
Reply With Quote
  #2 (permalink)  
Old 06-12-08, 02:00 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
HTML Code:
<a href='y.php?t=x' tabindex='1' title='' accesskey='1' target='_self'></a>
Change href='y.php?t=x'

PHP Code:

if ($_POST["do"] = "pro"
Will assign "pro" to $_POST["do"], and t=x is a querystring, it must be read by $_GET.

Use
PHP Code:

if ($_GET['t']=='pro'
instead.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My big problem... brettaf3d PHP 9 02-14-07 06:08 PM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 05:18 AM
mysql query problem (very important for me...) pedroso PHP 5 07-26-05 01:09 AM
Big problem with phpbb template engine! dungtien PHP 2 04-28-05 10:44 AM
Big problem for me... Eric Hadson PHP 0 02-11-05 01:53 AM


All times are GMT -5. The time now is 07:47 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.