Forum Moderators: coopster

Message Too Old, No Replies

I give up!

         

mhoctober

1:29 pm on Jan 24, 2006 (gmt 0)

10+ Year Member



Experts....not really a php question but excuse me for asking anyway...

I have a clicakbale link on a web page that is passing a value (in the URL)

eg...http://www.mysite.com?telNum=07881278111

On the target page I have a form field that I'd like to be populated with the telNumber at the end of the URL above.

I've tried everything!

Here is the closet that I think I have ever got...

<input type="text" name="frmTelNumber" size="38" value = "GET['telNum']" etc....etc...

Anyone see where I am going wrong?

coopster

2:16 pm on Jan 24, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You need to echo that value out using the PHP parsing engine:

<input type="text" name="frmTelNumber" size="38" value ="<?php print $_GET['telNum']; ?>" etc....etc...