02 Feb, 2012, tphegley wrote in the 1st comment:
Votes: 0
I have a PHP question. I'm having trouble getting information from a query string in a URL. I'm using qsfportal and everything is modular from the mysql database in table REGISTER_MAIN.

I've tried both:
<?php
echo $_SERVER['QUERY_STRING']
echo $_GET['cname'];
?>

<?php
echo 'Hello ' . htmlspecialchars($_GET["cname"]) . '!';
?>


And I keep getting the error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hermes/bosweb25b/b857/ipw.tphegley/public_html/qsf/func/register.php(100) : eval()'d code on line 17

I'm not exactly sure 'how' to properly insert php code to get what I want especially with having all the modular tables for the qsfp forum software.

Thanks for any help.
Tyler
02 Feb, 2012, kiasyn wrote in the 2nd comment:
Votes: 0
Is this in your .php file or in your template?
02 Feb, 2012, tphegley wrote in the 3rd comment:
Votes: 0
I'm trying to put the php code into the register_main table in the mysql.

Here's the table:
<form action="{$this->self}?a=register" method="post">
{$this->table}
<div class="title">{$this->lang->register_reging}</div>
///////////////////<————I want the php to go here so I can call the name and a few other queries into the register page.
<h1>Congratulations!</h1>
<p class="line"></p>
<span class="field">{$this->lang->register_new_user}</span>
<span class="form"><input type="text" name="desuser" size="40" /></span>
<p class="line"></p>

<span class="field">{$this->lang->register_email}</span>
<span class="form"><input type="text" name="email" size="40" /></span>
<p class="line"></p>

<span class="field">{$this->lang->register_passwd}</span>
<span class="form"><input type="password" name="passA" size="40" /></span>
<p class="line"></p>

<span class="field">{$this->lang->register_confirm_passwd}</span>
<span class="form"><input type="password" name="passB" size="40" /></span>
<p class="line"></p>

$math

<IF (!$tos_text)>
<input type="hidden" name="terms" value="1" />
<ELSE>
<span class="field">{$this->lang->register_tos_read}</span>
<span class="form">{$tos_text}</span>

<p class="line"></p>

<span class="field">{$this->lang->register_tos_i_agree}</span>
<span class="form"><input type="checkbox" name="terms" /></span>

<p class="line"></p>
</IF>
<input type="hidden" name="token" value="$token" />
<input type="submit" name="submit" value="{$this->lang->register_reg}" />
{$this->etable}
</form>


There isn't a 'static' php page as it all loads into the index.php from the main site.

So it'd be site.com/index.php?a=register&item=1...

I want to get cname and email from that and put it into the 'register' table.
0.0/3