how to make an ecard?
Date: 08/25/04
(PHP Development) Keywords: php, html, database, web
Hello! Sorry if this is an inappropriate place to post this, I'm in a hurry and other places have been little help as of yet.
I need advice. I am trying to create e-cards. I have the images, I need a way of sending them to people. This is for a friend's site that I'm building, and unfortunately she'd really like it within the next two weeks, so I'm trying to find something reletively easy.
I have found many tutorials on the web - this one seemed fairly straightforward with the exception of the MS Access database. I am new to databases of any kind, and don’t have MS Access. I’d like to be able to convert it to PHP but don’t even have a clue how. I did this tutorial as well, but when I used the PHP file that came with it, no text would appear in the card. When I replaced the PHP file with a new one that supposedly fixes that issue from the message forums, I got an error that a lot of users on the site got, but all of them fixed it without explaining how. I am very new to PHP and don’t know how to edit it correctly. I’ve included the PHP file under a cut tag at the end of the post just in case any of you can see what’s wrong with it out of context.
In theory I’d like to find either a very basic tutorial or something I can plug my images/info into, if such a thing exists. Thanks in advance for your help, it’s very much appreciated.
I have this error "Parse error: parse error, unexpected T_STRING, expecting T_CASE or T_DEFAULT or '}" on line 9. I only included the first part of the text after HTML,HEAD, & TITLE since the error is somewhere in line 9. I’ve tried switching the quotes around and using single quote marks instead of double quotes, etc, etc.
$ENum = $_GET["ENum"];
$EcardText = $_GET["EcardText"];
switch ($ENum) {
case '1':
$goto = "Ecard1.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '2':
$goto = "Ecard2.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=2";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '3':
$goto = "Ecard3.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=3";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '4':
$goto = "Ecard4.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=4";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '5':
$goto = "Ecard5.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=5";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
}
Source: http://www.livejournal.com/community/php_dev/46594.html