0

I have asp label in my asp page and its text is some my specific text. Now there I want to read this asp label text in PHP page. Means I want to get asp page label text in PHP page in a variable. Is there any built in function or another method to do this? I have tried much in PHP and also I am new to PHP so unable to do this. Is there any method to send the label text to PHP page or get the label text in PHP page? If is there any way to do this in vb.net or c# to send this label text to PHP then please share this with me or tell something other in PHP to get that value.

update

<asp:label id="lblemail" runat="server" text="malik.adeel"></label>
    <a href="http://sml.com.pk/sfpl/milk.php" target="_blank">Milk Receipt Dashboard</a>

I am calling PHP page in anchor tag and above is the label which have text. Now I want to take label text when I call the PHP page and also assign this text to PHP variable.

5
  • Erm... What? You're not making any sense. Commented Mar 27, 2012 at 13:20
  • How do you mix ASP.NET and PHP? :O Commented Mar 27, 2012 at 13:20
  • can you give here the code ? How you have mix them up ? Commented Mar 27, 2012 at 13:25
  • Quite a confusing question. Try to improve it by using other words, giving examples... ;) Commented Mar 27, 2012 at 13:59
  • Mr See Below same thing is happening by @RayG Commented Mar 28, 2012 at 4:33

1 Answer 1

1

I would recommend sending the value to the php page with a URL parameter.

In ASP.NET you could pass the parameter by doing something like this:

Response.Redirect("YourPage.php?variableName=" + variableValue);

Then in your php page, retrieve it by doing something like this:

$value = $_GET['variableName'];
Sign up to request clarification or add additional context in comments.

1 Comment

Try replacing your anchor tag with the following. It should insert the value of lblemail.text as a parameter in the URL named myParam. <a href="http://sml.com.pk/sfpl/milk.php?myParam=<%=lblemail.Text %>" target="_blank">Milk Receipt Dashboard</a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.