Jump to content

[SOLVED] Cant Seem to find a simple problem in my script?


winmastergames

Recommended Posts

<?php
$swduser = $_GET["user"];
$titleadd = $_POST["titleadd"];
$sloganadd = $_POST["sloganadd"];
$id-user = $_POST["user"];
?>
Welcome to Website Designer<br>
<a href="page-editor.php?user=<?php $swduser ?>&id=<?php $id-user ?>">Page Editor</a><br>
<a href="accoutadmin.php?user=<?php $swduser ?>&id=<?php $id-user ?>">Account Administration</a>

 

Whats Wrong Simple I know but seems to bring out this error

 

Parse error: syntax error, unexpected '=' in C:\xampp\htdocs\websitedesigner\makewebsite.php on line 5

 

Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive.

 

Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.

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.