winmastergames Posted April 9, 2008 Share Posted April 9, 2008 <?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 Link to comment https://forums.phpfreaks.com/topic/100396-solved-cant-seem-to-find-a-simple-problem-in-my-script/ Share on other sites More sharing options...
Barand Posted April 9, 2008 Share Posted April 9, 2008 might be objecting to $id minus user = $_POST["user"]; Link to comment https://forums.phpfreaks.com/topic/100396-solved-cant-seem-to-find-a-simple-problem-in-my-script/#findComment-513415 Share on other sites More sharing options...
gluck Posted April 9, 2008 Share Posted April 9, 2008 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. Link to comment https://forums.phpfreaks.com/topic/100396-solved-cant-seem-to-find-a-simple-problem-in-my-script/#findComment-513418 Share on other sites More sharing options...
winmastergames Posted April 9, 2008 Author Share Posted April 9, 2008 Thanks Fixed Link to comment https://forums.phpfreaks.com/topic/100396-solved-cant-seem-to-find-a-simple-problem-in-my-script/#findComment-513419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.