Jump to content

[SOLVED] Variables Question - Easy Solve


Lamez

Recommended Posts

How do I call a variable from another page and put into a form?

 

exmaple:

 

var.php:

<?php
$_1a = "Team A";
?>

 

form.php:

<?php
include ("var.php");
<form name="form1" method="post" action="">

  <select name="select">
    <option><?php echo $_1a; ?></option>
    <option>Team B</option>
  </select>
</form>

 

I tried this, and I go nothing as a output

Link to comment
https://forums.phpfreaks.com/topic/86421-solved-variables-question-easy-solve/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.