[Coco] OT -- PHP code help needed.

Dave Kelly daveekelly at earthlink.net
Sun Sep 17 19:07:22 EDT 2006


I need to pass a variable to a php include statememt.


  <a 
href="signup.php?var1=list-PINSS.php&var2=blurb-PINSS.php"><h3>Padre 
Island National Sea Shore</h3></a><br>

to be used in the include statememsts;

> <html>
> <body>
> <?php include ($_get["var2"]); ?>
> <br clear="all">
> <?php include ($_get["var1"]); ?>
> <br clear="all">
> <form action="form.php?var3=$_GET["var1"]" method="GET">
>     <input type="hidden" name="op" value="ds">
> <table width="468" border="0" cellspacing="0" cellpadding="0">
>   <tr>
>     <input type="hidden" name="id[1]" value="<br />"
>     <td>Name<input name="name[1]" type="text" size="30"></td>
>     <td>Email<input name="email[1]" type="text" size="60"></td>

I am getting these errors when I run it.

> 
> Notice: Undefined variable: _get in /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 3
> 
> Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 3
> 
> 
> Notice: Undefined variable: _get in /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 5
> 
> Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/texasflyfishers.org/httpdocs/signup.php on line 5
> 
> Name 	Email 	Phone

Any idea what I am doing  wrong.
Dave


-- 
The trouble with trouble is it starts out as fun.



More information about the Coco mailing list