Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php auto field

Status
Not open for further replies.

BettyJo50

Technical User
Apr 25, 2002
47
US
HI!

I have a form for updating, deleting and inserting data to already existing Company's information in ASP. I need to convert this code to PHP and was wondering if someone could point me in the right direction.

This is what is the code being used now for ASP.
FOr the form:<input type=&quot;hidden&quot; name=&quot;fldAuto&quot; value=&quot;<%= session(&quot;fldAuto&quot;)%>&quot;>

For each field: <input name=&quot;boxvendor&quot; size=&quot;75&quot; value=&quot;<%=session(&quot;fldVendor&quot;)%>&quot;>

I have been looking on the Internet, but haven't come across anything that would help me figure out the PHP code.

Any help would be greatly appreciated!!

Thank you!! :)
 
I assume that <%= session(&quot;fldAuto&quot;)%> inserts the value of the session variable 'fldAuto'.

Use the echo() or print() command in PHP:
<?php print($_SESSION['fldAuto']);?>

This is when using SESSION variables. You can refer to the POST and GET vars using $_POST['fieldname'] or $_GET['fieldname'];
POST, GET, and COOKIE vars are combined in $_REQUEST['fieldname'];

FOr using sessions however you need to include a start_session() directive and assign the values to the $_SESSION array.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top