473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

somebody help me!passing variable to same page after button submit

28
Hello there,

Can anybody please help me with this.I used one php page from where i've sent a variable to other php page thru a hidden field (HTML).In that page i'm able to retrieve the value before i submit a button.From that page i forwarded the same value to the same page after submitting the button.There i'm just able to use the value as a static content.if fc is the value i retrieved

for ($i=0;$i<$fc;$i++)
{

$var = "a$i";
i have to retrieve a value from the database where a column value should be $$var.But there is no value for $$var.
Moreover,if i dont use any button submission and if there is no such thing like before and after submission but the variable is just used in the second page,there is being some value for $$var.

Please help me with this.Hope this is understandable.

Thanks,
Shara.
Feb 26 '07 #1
2 4096
xwero
99
Hello there,

Can anybody please help me with this.I used one php page from where i've sent a variable to other php page thru a hidden field (HTML).In that page i'm able to retrieve the value before i submit a button.From that page i forwarded the same value to the same page after submitting the button.There i'm just able to use the value as a static content.if fc is the value i retrieved

for ($i=0;$i<$fc;$i++)
{

$var = "a$i";
i have to retrieve a value from the database where a column value should be $$var.But there is no value for $$var.
Moreover,if i dont use any button submission and if there is no such thing like before and after submission but the variable is just used in the second page,there is being some value for $$var.

Please help me with this.Hope this is understandable.

Thanks,
Shara.
I think if you want to pass a variable over multiple forms you put it in a session variable. This way it doesn't have to be in your form. Set the variable when you retrieve it and unset it when the last form is submitted correct.
Feb 26 '07 #2
shara
28
I think if you want to pass a variable over multiple forms you put it in a session variable. This way it doesn't have to be in your form. Set the variable when you retrieve it and unset it when the last form is submitted correct.
Thanks for responding.But its not that i want to pass a varible over forms.If i am retrieving the value of a variable directly from one page to other to perform some action,i am able to get some value for $$var.But its not the case if i want give a warning (button submit)before taking that action and then using $$var after button submission.In this case i'm not able to have any value for $$var.Can you please help me with this.
Feb 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: R. Tarazi | last post by:
Hello together, I'm having extreme difficulties using RegExps for a specific problem and would really appreciate any help and hope somebody will read through my "long" posting... 1. <?php...
3
by: Patrick | last post by:
Hi, I managed to open a msaccess database with python. import win32com.client.dynamic db1 = win32com.client.dynamic.Dispatch("Access.Application") dbname =...
0
by: John Dean | last post by:
Hi I am in the process of porting Rekall to Mac X OS and I am having trouble finding the Python SDK. I would be grateful if somebody would be kind enough to point me in the right direction ...
9
by: Daniel Walzenbach | last post by:
Hi, I'd like to know how I can nominate somebody as a MVP? I've checked the MVP FAQ but haven't found anything (@ least not on the german one...) Thank you! Best regards Daniel Walzenbach
1
by: UJ | last post by:
Can somebody point me to where no touch deployment is really explained? One of the big questions I have is it seems like with no-touch you don't actually have the executable on your machine -...
0
by: Jai | last post by:
Hi, Somebody please tell me how to bind(two way) a checkboxlist with objectdatasource if the checkboxlist is inside a formview..... Code of FormView is like this::--- <asp:FormView...
14
by: cool.vimalsmail | last post by:
i dont know how to convert a txt file into a zip file (i.e.,)i have a file named packages and i want the packages file with a ".gz" extension by implementing a python program
2
by: Tin | last post by:
I bought a laptop and burned 4 recovery CDs for recovery purpose. Instead of burning as disc images, I just copied and pasted these 4 CDs to my USB HDD as 4 folders called "RecoveryCD 1",...
5
by: Sunfire | last post by:
Can somebody put this code into c#? Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim imageFolder As String Dim imageText As String Dim bm As...
5
by: Adisco | last post by:
Hello, I'm Adisco. Can somebody tell me how to start, because I want to learn Visual Basic. I'm a student in Sierra Leone studying Electrical and Electronics Engineering. I'm really interested in IT...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.